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

Keep the TabPanel Content intact clearContent={false} #35500

Closed
2 tasks done
Ishaan28malik opened this issue Dec 16, 2022 · 1 comment
Closed
2 tasks done

Keep the TabPanel Content intact clearContent={false} #35500

Ishaan28malik opened this issue Dec 16, 2022 · 1 comment
Assignees
Labels
component: tabs This is the name of the generic UI component, not the React module! duplicate This issue or pull request already exists

Comments

@Ishaan28malik
Copy link

Duplicates

  • I have searched the existing issues

Latest version

  • I have tested the latest version

Summary 💡

I tried using multiple forms in different Tabs and got to know that there has to be a prop like clearContent={false}
Which is supposed to keep the content of the Tabs intact when we do tab switching .

I used one way to solve this issue but this is not the right way to do it , I guess .

So kindly pass a props for the same.

Examples 🌈

<div key={item.value} style={{ display: item.value == tab ? 'block' : 'none' }}>
        {item.child()}
</div>

Motivation 🔦

#22840

@Ishaan28malik Ishaan28malik added the status: waiting for maintainer These issues haven't been looked at yet by a maintainer label Dec 16, 2022
@Ishaan28malik Ishaan28malik changed the title Keep the TabPanel Content intact Keep the TabPanel Content intact clearContent={false} Dec 16, 2022
@zannager zannager added the component: tabs This is the name of the generic UI component, not the React module! label Dec 16, 2022
@mnajdova mnajdova self-assigned this Dec 19, 2022
@mnajdova
Copy link
Member

Duplicate of #21250 See the related conversation there or add a comment/upvote the issue

@mnajdova mnajdova added duplicate This issue or pull request already exists and removed status: waiting for maintainer These issues haven't been looked at yet by a maintainer labels Dec 19, 2022
@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Dec 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: tabs This is the name of the generic UI component, not the React module! duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

3 participants