-
-
Notifications
You must be signed in to change notification settings - Fork 275
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
Disable select item with mouse #116
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
Played around on the demo site in safari. Seems to have solved a big chunk of the woes on that browser! What would you think of having the mouse behavior controlled by a new prop? Might be able to keep the old styling, but enable new opt-in behavior. |
I'm in favor of letting the user make the selection with mouse but it can require a slight boilerplate so enabling this behavior with a prop is not a bad thing. I believe that the correct approach here is to disable the mouse selection with a prop and make this the default in a future v1 release |
Would love to see this merged. Feels a lot more intuitive and less prone to accidental selections. |
@pacocoursey would like to know what you think! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great!
@pacocoursey not sure if this made it to the 0.2.1 release. Seems like this was merged the same day the release 👀 |
As discussed in #49 keyboard-only item selection is the new default. I didn't add a prop to enable mouse selection because this can be implemented by the consumer if he wants to. What do you think?I think the only problem here is that the mouse selection style will break for users so would this be a breaking change?Adding a new prop
disablePointerSelection
to disable item selection via pointer events