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

[BUG] - Using Tabs inside Modal breaks UI #4805

Open
jrmylee opened this issue Feb 6, 2025 · 1 comment
Open

[BUG] - Using Tabs inside Modal breaks UI #4805

jrmylee opened this issue Feb 6, 2025 · 1 comment

Comments

@jrmylee
Copy link

jrmylee commented Feb 6, 2025

HeroUI Version

2.6.14

Describe the bug

When a Modal containing Tabs is closed after switching between tabs, the modal's content remains visually present on the screen but in a "ghosted" state. This creates a UI layer that appears invisible but still occupies space and interferes with user interactions, as clicks are being intercepted by the invisible modal content.

Your Example Website or App

No response

Steps to Reproduce the Bug or Issue

Reproducible steps:

  • Add 2 tabs inside a modal content component
  • Open modal
  • If tab 1 is selected, switch to tab 2
  • Close modal
  • The contents of the modal will still be on the screen, but not rendered(ghosted). So nothing will be clickable to the user, because the user is clicking the contents of the modal without knowing it.

Expected behavior

When the modal is closed, all of its content, including any tab components and their associated content, should be completely removed from both the DOM and visual layer. There should be no residual UI elements or invisible interactive areas remaining after the modal is closed.

Screenshots or Videos

No response

Operating System Version

macOS

Browser

Chrome

Copy link

linear bot commented Feb 6, 2025

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant