Skip to content

fix(switch): prevent event handlers from being spread onto button element - #58

Merged
aibayanyu20 merged 3 commits into
nextfrom
fix/switch-event
May 27, 2026
Merged

fix(switch): prevent event handlers from being spread onto button element#58
aibayanyu20 merged 3 commits into
nextfrom
fix/switch-event

Conversation

@cc-hearts

@cc-hearts cc-hearts commented May 27, 2026

Copy link
Copy Markdown
Member

Summary

  • Destructure onChange, onClick, onKeyDown, and onUpdate:checked out of restProps so they aren't spread onto the native <button> element

@aibayanyu20
aibayanyu20 merged commit 21e34c7 into next May 27, 2026
1 check passed
@aibayanyu20
aibayanyu20 deleted the fix/switch-event branch May 27, 2026 06:53
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.

2 participants