Replies: 1 comment
-
I have the same problem with @close fired twice using Dialog inside TransitionRoot. Without TransitionRoot the dialog @close is fired only once (as intended). I am using @headlessui/vue v1.17.16 Any help is appreciated! |
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.
-
I am trying out a simple implementation of dialog for vue with the following code
When clicking(once) anywhere outside of the dialog, this is what appeared on the vue devtools event timeline with the @close event firing once. Is this behaviour intended?
The reason I brought this up is, this behaviour breaks when I replace
@close="isOpen = false"
with@close="toggleState()"
and thatisOpen
will be always betrue
due to calling the function twice.Beta Was this translation helpful? Give feedback.
All reactions