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

UDrawer ignores :dismissible="false" prop and still closes when interacting outside #3727

Open
dosstx opened this issue Mar 29, 2025 · 0 comments
Labels
bug Something isn't working triage v3 #1289

Comments

@dosstx
Copy link

dosstx commented Mar 29, 2025

Environment



Is this bug related to Nuxt or Vue?

Nuxt

Version

v3.0.2

Reproduction

Tried to setup repo, but codesandbox was giving errors and stalling out.

Description

When using the UDrawer component with :dismissible="false" and :modal="false", the drawer still closes when users interact with elements outside the drawer. This prevents users from interacting with the form or other page elements while the drawer is open.

Steps to Reproduce
Create a UDrawer component with :dismissible="false"
Set the drawer to be open
Try to interact with form elements or other content outside the drawer

Additional context

Expected Behavior
According to the documentation at https://ui.nuxt.com/components/drawer#prevent-closing, setting dismissible="false" should prevent the drawer from closing when clicking outside or pressing escape.
Actual Behavior
The drawer still closes when clicking outside, making it impossible to interact with form elements on the page while the drawer is open.

<UDrawer
  v-model:open="showMobileResults"
  direction="bottom"
  :modal="false"
  :handle="false"
  :overlay="false"
  dismissible="false"
  title="Biological Age Results"
  description="View your biological age and longevity estimates"
>
  <!-- Drawer content here -->
</UDrawer>

Logs

@dosstx dosstx added bug Something isn't working triage v3 #1289 labels Mar 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working triage v3 #1289
Projects
None yet
Development

No branches or pull requests

1 participant