You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Open then close the dialog, the close print twice in console.
Btw 4 open events triggered in the reproduction when open the dialog at first time but in my project it's triggered 4 times when I opened a dialog with a form everytime. Not sure what's the condition of that event.
Environment
Link to minimal reproduction
https://stackblitz.com/edit/vitejs-vite-m19bfk
Steps to reproduce
Open then close the dialog, the
close
print twice in console.Btw 4 open events triggered in the reproduction when open the dialog at first time but in my project it's triggered 4 times when I opened a dialog with a form everytime. Not sure what's the condition of that event.
Image below is the console of reproduction.
Describe the bug
The events ( at least close trigger two times)
Expected behavior
Only trigger once.
Context & Screenshots (if applicable)
Had a quick look I found here:
https://github.com/radix-vue/radix-vue/blob/1866a346571fdf0695ecd58a539b72258076e1d4/packages/radix-vue/src/Dialog/DialogContentModal.vue#L19
https://github.com/radix-vue/radix-vue/blob/1866a346571fdf0695ecd58a539b72258076e1d4/packages/radix-vue/src/Dialog/DialogContentImpl.vue#L8-L19
Already pass the events as props however it's defined again below
https://github.com/radix-vue/radix-vue/blob/1866a346571fdf0695ecd58a539b72258076e1d4/packages/radix-vue/src/Dialog/DialogContentModal.vue#L23-L31
Not sure if this intended.
The text was updated successfully, but these errors were encountered: