floating-vue icon indicating copy to clipboard operation
floating-vue copied to clipboard

AutoHide option causes reopening of DropDown if the trigger is clicked

Open learnny opened this issue 1 year ago • 0 comments

If :auto-hide is set to true and the trigger is set to "click", the DropDown is reopened if i click on the trigger to close the popper.

This is caused by the mouse-up event. So if the dropdown is open and i now click the trigger button to close it, the mouse-down event closes the dropdown and the mouse-up event reopens it.

An option to ignore the mouse-up event completely would be nice, but idk maybe there is a better way.

As a workaround i disabled the auto-hide option and used a click-outside directive to close the popper when clicked anywhere on the page.

learnny avatar Jul 17 '24 14:07 learnny