Skip to content

Ater updating to v5.1 the v-close-popper directive no longer works #1013

@kouts

Description

@kouts

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.

https://stackblitz.com/edit/vue3-tailwind-ad4rfl?file=src%2FApp.vue

I think the issue probably lies here:

el.addEventListener('click', onClick)

I tried to fork the project and follow the contributing guidelines but I wasn't able to fire-up the dev environment.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions