let's talk about react-aria and why it's controversial #3255
hichemfantar
started this conversation in
General
Replies: 2 comments
-
Trying out the react-aria Button element, I can click the button and drag outside, and that cancels the |
Beta Was this translation helpful? Give feedback.
0 replies
-
I havent tested but a look at menu-trigger-behavior in react-aria docs shows me a If i set |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
First of all, I would like to thank the team for creating headless ui.
However I believe the decision to go with react-aria breaks the most fundamental interactive element. the
Button
.I should be able to cancel a click by moving the cursor outside of the button. This is native behavior that is expected by all users.
react-aria button behavior introduces unnecessary incompatibility with standard browser click events.
It feels these button modifications break away from native behavior which introduces problems with accessibility similar to Flutter.
I'd appreciate some feedback on this because It seems from searching on the internet, many people agree with my take.
example:
Combobox: notice how it registers the click before releasing which doesn't allow the user to cancel a click.
However I don't understand why this behavior isn't consistent across all clickable elements.
Beta Was this translation helpful? Give feedback.
All reactions