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

Improve event handler merging #1715

Merged
merged 2 commits into from
Jul 26, 2022
Merged

Improve event handler merging #1715

merged 2 commits into from
Jul 26, 2022

Conversation

RobinMalfait
Copy link
Member

This will ensure that an actual event is passed before checking the
event.defaultPrevented.

For React, we also have to make sure that we are not dealing with a
SyntehticEvent.

Thanks @Mookiepiece!

Closes: #1711

This will ensure that an actual event is passed before checking the
`event.defaultPrevented`.

For React, we also have to make sure that we are not dealing with a
SyntehticEvent.

Thanks @Mookiepiece!

Co-authored-by: =?UTF-8?q?=E5=BD=BC=E8=A1=93=E5=90=91?= <[email protected]>
@vercel
Copy link

vercel bot commented Jul 26, 2022

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated
headlessui-react ✅ Ready (Inspect) Visit Preview Jul 26, 2022 at 10:38AM (UTC)
headlessui-vue ✅ Ready (Inspect) Visit Preview Jul 26, 2022 at 10:38AM (UTC)

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 this pull request may close these issues.

Cannot read property 'defaultPrevented' of undefined
1 participant