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

[Component] - Tabs - add option to keep inactive tabs inside the DOM #2283

Closed
acd02 opened this issue Jul 1, 2024 · 0 comments · Fixed by #2284
Closed

[Component] - Tabs - add option to keep inactive tabs inside the DOM #2283

acd02 opened this issue Jul 1, 2024 · 0 comments · Fixed by #2284
Assignees
Labels
Component: tabs Related to tabs component Component Related to a component Type: Enhancement

Comments

@acd02
Copy link
Contributor

acd02 commented Jul 1, 2024

As of today, the Tab component thrashes inactive tabs.

An option to keep these tabs in the DOM, and simply hide them instead of removing them from the DOM would be beneficial, especially when Tab.Content loads heavy resources on mount, like high-definition images, videos, iframes, etc...

@acd02 acd02 self-assigned this Jul 1, 2024
@acd02 acd02 added Component Related to a component Component: tabs Related to tabs component Type: Enhancement labels Jul 1, 2024
@acd02 acd02 added this to the 2024 Q2 - Sprint 7 milestone Jul 1, 2024
@acd02 acd02 changed the title [Component] - Tabs - add option to keep inactive tabs Inside the DOM [Component] - Tabs - add option to keep inactive tabs inside the DOM Jul 1, 2024
acd02 added a commit that referenced this issue Jul 2, 2024
…tent in the DOM

Add keepMountedOnInactive option to retain inactive tab content in the DOM

#2283
@acd02 acd02 linked a pull request Jul 2, 2024 that will close this issue
9 tasks
acd02 added a commit that referenced this issue Jul 2, 2024
…tent in the DOM

Add keepMountedOnInactive option to retain inactive tab content in the DOM

#2283
acd02 added a commit that referenced this issue Jul 3, 2024
… DOM

Add forceMount option to retain inactive tab content in the DOM

#2283
acd02 added a commit that referenced this issue Jul 4, 2024
… DOM

Add forceMount option to retain inactive tab content in the DOM

#2283
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Component: tabs Related to tabs component Component Related to a component Type: Enhancement
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant