Skip to content

TS errors for contentEditable attribute #4241

@nephix

Description

@nephix
  • Check if updating to the latest Preact version resolves the issue

Describe the bug

When using the contentEditable, @types/react considers "inherit" a valid value while preact doesn't

The mdn docs state that

If this attribute is missing or its value is invalid, its value is inherited from its parent element: so the element is editable if its parent is editable.

it still produces typescript errors in various react libraries.

To Reproduce

See the links

Expected behavior

No typescript errors in various react libs that use contentEditable

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions