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

[Modal] prevent-close differs between v2 and v3 #2501

Closed
some-user123 opened this issue Oct 31, 2024 · 0 comments
Closed

[Modal] prevent-close differs between v2 and v3 #2501

some-user123 opened this issue Oct 31, 2024 · 0 comments
Labels
enhancement New feature or request v3 #1289

Comments

@some-user123
Copy link

For what version of Nuxt UI are you suggesting this?

v3-alpha

Description

In v2 (https://ui.nuxt.com/components/modal#prevent-close):

Use the prevent-close prop to disable the outside click alongside the esc keyboard shortcut. A close-prevented event will be emitted when the user tries to close the modal.

In v3 (https://ui3.nuxt.dev/components/modal#prevent-close):

Use the prevent-close prop to prevent the Modal from being closed when clicking outside of it.

I'd like to have similar behavior in v3 as in v2, i.e. being able to prevent closing the modal (by any means) but being able to capture and handle this event on my own.

Additional context

No response

@some-user123 some-user123 added enhancement New feature or request triage labels Oct 31, 2024
@benjamincanac benjamincanac added v3 #1289 and removed triage labels Nov 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request v3 #1289
Projects
None yet
Development

No branches or pull requests

2 participants