Skip to content
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

close prevented event on Modal #3126

Open
schillerenrico opened this issue Jan 17, 2025 · 3 comments · May be fixed by #3127
Open

close prevented event on Modal #3126

schillerenrico opened this issue Jan 17, 2025 · 3 comments · May be fixed by #3127
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
@rdjanuar rdjanuar linked a pull request Jan 17, 2025 that will close this issue
8 tasks
@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
Collaborator

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

@schillerenrico
Copy link
Author

@rdjanuar Perfect! Thanks

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
Development

Successfully merging a pull request may close this issue.

2 participants