You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Afaik, React Aria Components do not aim to provide the same defaults as the hooks. You can achieve the same behavior with the hook by setting the validationBehavior property to native. This is done by default inside the <Checkbox />:
Provide a general summary of the issue here
When using the useCheckbox hook to contstruct a custom checkbox the isRequired prop does not prevent form submittions.
🤔 Expected Behavior?
The isRequired prop should work the same way when using the Checkbox component vs the useCheckbox hook.
😯 Current Behavior
It seems like it is getting the correct aria attribute:
aria-required="true"
but it does not prevent form sunmittions.💁 Possible Solution
No response
🔦 Context
🖥️ Steps to Reproduce
https://codesandbox.io/p/sandbox/fc6w74
Version
1.4.1
What browsers are you seeing the problem on?
Firefox, Chrome, Safari, Microsoft Edge
If other, please specify.
No response
What operating system are you using?
macOS 15.0.1 (24A348)
🧢 Your Company/Team
No response
🕷 Tracking Issue
No response
The text was updated successfully, but these errors were encountered: