-
-
Notifications
You must be signed in to change notification settings - Fork 2k
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
The type of this
is not event.currentTarget
onChange events
#3137
Comments
this
type is not event.currentTarget
onChange eventsthis
is not event.currentTarget
onChange events
I believe this was intentionally removed in order to prevent misleading |
I see that now Lines 370 to 376 in 2af05f5
Could you advise how can I create a wrapper around a native Same example in React: |
Describe the bug
The type of
this
onChange events is notevent.currentTarget
as the type definition implies:preact/src/jsx.d.ts
Lines 368 to 373 in c7f57db
Also implied in this test:
preact/test/ts/Component-test.tsx
Lines 5 to 9 in c7f57db
To Reproduce
https://codesandbox.io/embed/ancient-tree-6kj30?expanddevtools=1
Steps to reproduce the behavior:
Expected behavior
The type of
this
should be the same asevent.currentTarget
The text was updated successfully, but these errors were encountered: