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

Fix event handlers with arity > 1 #1515

Merged
merged 2 commits into from
May 28, 2022
Merged

Fix event handlers with arity > 1 #1515

merged 2 commits into from
May 28, 2022

Conversation

RobinMalfait
Copy link
Member

This PR fixes an issue where event handlers with an arity > 1 receives undefined as the second
argument instead of the required argument.

One of those examples is the onDragEnd handler, it receives an event and PanInfo but before this
fix this was always undefined.

Fixes: #1513

@vercel
Copy link

vercel bot commented May 28, 2022

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

Name Status Preview Updated
headlessui-react ✅ Ready (Inspect) Visit Preview May 28, 2022 at 3:30PM (UTC)
headlessui-vue ✅ Ready (Inspect) Visit Preview May 28, 2022 at 3:30PM (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.

mergeProps breaks event handlers with arity > 1
1 participant