After doing some research, I found another behaviour similar to the work we did on the escape key behaviour (#15).
Similarly here, looking at what the OS does for all types of modal layers (things like save system menus, app menus, right click menus, open selects, etc) click outside always executes instantly as soon as pressing down, on mousedown basically.
I believe we should also bind to mousedown rather than click?
Small change again, but I think offers much better consistency.
Let me know your thoughts, I'll send you a PR for it as well in a minute.
Hi @theKashey,
After doing some research, I found another behaviour similar to the work we did on the escape key behaviour (#15).
Similarly here, looking at what the OS does for all types of modal layers (things like save system menus, app menus, right click menus, open selects, etc) click outside always executes instantly as soon as pressing down, on
mousedown
basically.I believe we should also bind to
mousedown
rather thanclick
?Small change again, but I think offers much better consistency. Let me know your thoughts, I'll send you a PR for it as well in a minute.
Cheers 👍