PopoverButton use with :as
prop produces weird behavior
#2562
Unanswered
briancbarrow
asked this question in
Help
Replies: 1 comment
-
+1 for visibility, almost exact same issue on my end. Here's a quick reproduction for the issue - https://codesandbox.io/s/currying-hooks-xwt7gs?file=/src/App.vue The issue appeared on the newest 1.7.14 version, tested it on 1.7.12 and it worked as expected |
Beta Was this translation helpful? Give feedback.
0 replies
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.
Uh oh!
There was an error while loading. Please reload this page.
-
Screen.Recording.2023-06-28.at.2.54.02.PM.mov
As you can see in the screen recording above, when we use the
:as
prop on thePopoverButton
component we get behavior where the popover doesn't close when the button is clicked again like it does when that prop is not present.Currently we are using a custom
Button
component, but even when the component we use is reduced to just the following template we still see the issue.Here is a recording of what we would expect the behavior to be:
Screen.Recording.2023-06-28.at.2.58.45.PM.mov
Are we just using the
:as
prop wrong?Edit: It does work fine if we do not use a button as the tag. So this works:
Is the
button
tag emitting an event that is messing with the Popover state?Beta Was this translation helpful? Give feedback.
All reactions