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

[@mantine/core] Tabs: Add keepMounted prop to TabsPanel #5283

Merged
merged 1 commit into from
Nov 21, 2023

Conversation

aadityabhusal
Copy link
Contributor

When keepMounted prop is passed to Tabs component, it is applied to all the panels. This change allows to set keepMounted property to specific panels.

A scenario I faced:
I have 3 panels, a normal, a lazy loaded, and one with iframe. I want to keep the normal and iframe panels mounted but want the lazy loaded to only mount when opened. If keepMounted is set to false, the iframe keeps refreshing and if it is set to true, the component is not lazy loaded.

@rtivital rtivital merged commit a9e350c into mantinedev:master Nov 21, 2023
1 check passed
@rtivital
Copy link
Member

Thanks!

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

Successfully merging this pull request may close these issues.

2 participants