-
Notifications
You must be signed in to change notification settings - Fork 90
Adding a min size for select box before it starts selecting items #85
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
Comments
This is a great recommendation! A quick hotfix I've found to work well at allowing normal click events to still happen is to swap the |
Not sure what is meant by this. Maybe post permalinks to the lines involved? |
totally agree. I was having the same problem. @Samin100 could you explain your solution? |
Also having the same problem, any update on this? |
I made a PR with this changes #101
it adds a minSelectSize prop to the SelectableGroup where you can specify pixels distance moved before the selection starts.
|
First of all - thank you for open sourcing this component! It's saving me a lot of time since I don't need to build this entirely from scratch.
Thoughts on adding an option to set a min size for the select box before it triggers the
duringSelection
?When people click their mouse it's highly likely that while the mouse is down they move their mouse slightly. This means a drag event is triggered and that the item gets selected so the original click event (e.g. open a modal) doesn't actually happen. This can be confusing to users as they think they just did a mouse click.
Happy to submit a PR but want to make sure that you think this would be a good edit :) Happy to chat more.
The text was updated successfully, but these errors were encountered: