Skip to content

jsx intrinsic elements style property key cannot use LowerCamelCase #2379

@yuzhen1024

Description

@yuzhen1024

Describe the bug

Issue title

Your Example Website or App

Steps to Reproduce the Bug or Issue

function Component() {
  return (<div style={{
    // zIndex: 3000,  // Cannot compile correctly
    'z-index': 3000,  // ok, But is no syntax completion hint
  }}></div>)
}

Expected behavior

图片
This, can use.

Screenshots or Videos

No response

Platform

Additional context

"solid-js": "^1.9.3",

Metadata

Metadata

Assignees

No one assigned

    Labels

    typescriptrelating to typescript or types

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions