fix(checkbox, radio, select): missing data pressed attribute due to labelProps#4272
fix(checkbox, radio, select): missing data pressed attribute due to labelProps#4272Peterl561 wants to merge 3 commits into
Conversation
|
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
|
@Peterl561 is attempting to deploy a commit to the NextUI Inc Team on Vercel. A member of the Team first needs to authorize it. |
|
Important Review skippedDraft detected. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
Documentation and Community
|
|
Working on tests |
|
The hidden input in selection components fails to get click events due to logic in |
Closes #4260
📝 Description
Checkbox,Radio, andSwitchdata-pressedattributebefore.mp4
🚀 New behavior
Checkbox,Radio, andSwitchdata-pressednot being appliedafter.mp4
💣 Is this a breaking change (Yes/No):
No
📝 Additional Information
Checkbox,Radio, andSwitchcomponentspressPropsreturned byusePressfromgetBasePropsonMouseDownhandlers from base component, which was callinge.preventDefault()data-pressedattribute to no longer be appliedlabelPropsfrom the affected components' respective hooks to replace the removedpressPropslabelPropsis actually justpressPropsfrom theusePresscalled internally inreact-aria's component hooks