Skip to content

close prevented event on Modal #3126

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

Closed
schillerenrico opened this issue Jan 17, 2025 · 4 comments · Fixed by #3958
Closed

close prevented event on Modal #3126

schillerenrico opened this issue Jan 17, 2025 · 4 comments · Fixed by #3958
Labels
question Further information is requested v3 #1289

Comments

@schillerenrico
Copy link

Description

Hi, coming from v2 into v3 im missing the onClosePrevented event on modals
https://ui.nuxt.com/components/modal#prevent-close

How can listen to the close prevented event in v3?

Thanks!

@schillerenrico schillerenrico added question Further information is requested v3 #1289 labels Jan 17, 2025
@schillerenrico
Copy link
Author

@rdjanuar Thats should do the trick! Thanks!

By the way shouldnt patch "dismissble" work?

If I try patching dismissble via useModal its not working...
I know there is a way in my reproduction to set the prop :dismissable but the point here is that patch dismissble should work too, right?
https://codesandbox.io/p/devbox/objective-khayyam-kq8n74

@rdjanuar
Copy link
Contributor

use v3.0.0.11 because In the latest release, preventClose has been renamed to dismissible @schillerenrico

@schillerenrico
Copy link
Author

@rdjanuar Perfect! Thanks

@benjamincanac
Copy link
Member

Done in #3958.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested v3 #1289
Projects
None yet
3 participants