It seems that the change from click to mousedown introduced in v5.1 broke the v-close-popper directive, so clicking on an element that has the directive no longer closes the popper.
Here's a Stackblitz showcasing the issue, you'll notice that the dropdown that uses hide works as expected while the one using v-close-popper does not.
It seems that the change from
click
tomousedown
introduced inv5.1
broke thev-close-popper
directive, so clicking on an element that has the directive no longer closes the popper.Here's a Stackblitz showcasing the issue, you'll notice that the dropdown that uses
hide
works as expected while the one usingv-close-popper
does not.https://stackblitz.com/edit/vue3-tailwind-ad4rfl?file=src%2FApp.vue
I think the issue probably lies here: https://github.com/Akryum/floating-vue/blob/0de649a9e2c00cdc585228ec88420edf8e1257ef/packages/floating-vue/src/directives/v-close-popper.ts#L4
I tried to fork the project and follow the contributing guidelines but I wasn't able to fire-up the dev environment.