You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you click inside and hold then unclick outside it will hide the dropdown, for example Im trying to use this for a modal with a form, then when I tried to select all the text quickly, I accidentally released the click outside and the modal dissapeared, I recommend to add params to select what kind of event (mousedown, mouseup, etc)
The text was updated successfully, but these errors were encountered:
I noticed the same issue. I also noticed that this behavior is inconsistent between chrome and firefox
On firefox, when clicking inside the element and releasing the click outside, onTriggered is not triggered. It is only triggered if both click's mousedown and mouseup parts happen outside the element
On chrome, if either the click's mousedown OR mouseup happen outside the element, then onTriggered will be triggered. The only way for onTriggered to not be triggered, is if the whole click is done inside the element
Of course, when both steps of the click happen inside the element, or when both steps happen outside, the expected behavior is respected
Hi there @iAnthonyCoder @benoitkoenig , thanks for bringing this to my attention! Sounds like a very valid use case (with some interesting browser differences) that the hook should definitely handle.
Would either of you be up to making a PR that would handle this? Things are a little busy on my end at the moment.
If you click inside and hold then unclick outside it will hide the dropdown, for example Im trying to use this for a modal with a form, then when I tried to select all the text quickly, I accidentally released the click outside and the modal dissapeared, I recommend to add params to select what kind of event (mousedown, mouseup, etc)
The text was updated successfully, but these errors were encountered: