This repository has been archived by the owner on Nov 16, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 60
clickOutside- differentiating drag from click #66
Comments
This is similar to #49. You can maybe adjust which events are listened to instead? |
works well thanks. Added below suggested code |
but this now requires 2 clicks to get the clickOutside event. Is there any better approach which will make single click outside work. |
No, this is just the browser's behaviour. |
I was just checking Gmail search dropdown which worked well. Is there any suggestion or alternate approach to adapt. |
You can read the source code to get a better idea of what it's doing, but it's very basic usage of click handlers and checking what the target was. If you have a better idea, feel free to suggest it. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
The default behaviour shows click & drag to outside both trigger callback registered with clickOutside.
I need the event to be triggered only on click & not drag. How to achieve this
The text was updated successfully, but these errors were encountered: