-
-
Notifications
You must be signed in to change notification settings - Fork 265
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: allow hooking on Dialog animation end #901
Conversation
Thanks for the PR @noook . I'm thinking a more general solution for components that are using something like this const dispatchCustomEvent = (name: 'enter' | 'after-enter' | 'leave' | 'after-leave') => {
const customEvent = new CustomEvent(name, { bubbles: false, cancelable: false })
node.value?.dispatchEvent(customEvent)
} Then in the <DialogOverlay class="animation" @leave="" @after-leave="" /> |
I get it, what do you think of it now @zernonia ? I'm not sure all events can be fired, for example I haven't seen the |
No prob @noook ! I've pushed some I believe this feature fit your original request right? where you can hook into the animation state 😁 |
That looks fine ! And yes, I tested in the stories it fits the request 🔥 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let'sss goo!! Thanks for the PR @noook !!
Right now it's not explicit that which component has the |
We’re getting a fatal error on latest Nuxt and 1.8.0
In console:
and
|
I'm not seeing anywhere in the docs on how to do this? Was this removed in a later patch? I.e. this does not work (no events fired): <DialogOverlay
@leave="onLeave"
@after-leave="onLeave"
v-on:leave="onLeave"
v-on:after-leave="onLeave"
>... Am I missing something? |
Resolves #878
Not sure this is the expected method, I'd love to have feedback on it