Skip to content

[Bug]: Dialog blocks click event listener #834

@andresespinosapc

Description

@andresespinosapc

What package within Headless UI are you using?

@headlessui/vue

What version of that package are you using?

1.4.1

What browser are you using?

Chrome

Reproduction repository

https://codesandbox.io/s/bug-headless-ui-dialog-click-outside-8n3jh

Describe your issue

Click event listener is not emitted on dialogs.

The problem with this is that I'm trying to make a dropdown that closes when clicking outside. To do that I want to add a global event listener for the click event, but it's not being triggered.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions