PopoverButton require 2 clicks but changing 'as' from button to div (or other) changes events in PopoverPanel #2354
Unanswered
monkeytroy
asked this question in
Help
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
If a PopoverButton is left to the default 'as' button type, the first click sets focus to the button but does not open the popover. A second click on the button is required to open the content. This is how it works even in the example at https://headlessui.com/vue/popover and does not seem like a desired behavior.
Changing the 'as' to div will allow a single click open of the popover but then clicking anything in the PopoverPanel will close the popover.
Am I missing a setting, is this a bug or expected behavior? Is there a way to leave the 'as' type as button and open with single click?
Beta Was this translation helpful? Give feedback.
All reactions