floating-vue
floating-vue copied to clipboard
AutoHide option causes reopening of DropDown if the trigger is clicked
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.