Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TS errors for contentEditable attribute #4241

Closed
1 task done
nephix opened this issue Dec 27, 2023 · 0 comments · Fixed by #4242
Closed
1 task done

TS errors for contentEditable attribute #4241

nephix opened this issue Dec 27, 2023 · 0 comments · Fixed by #4242

Comments

@nephix
Copy link

nephix commented Dec 27, 2023

  • 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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant