-
-
Notifications
You must be signed in to change notification settings - Fork 123
[Tabs] fix keepMounted for panel #1873
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
base: master
Are you sure you want to change the base?
Conversation
commit: |
✅ Deploy Preview for base-ui ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
@@ -47,10 +47,14 @@ export const TabsPanel = React.forwardRef(function TabPanel( | |||
render: render ?? 'div', | |||
className, | |||
state, | |||
extraProps: { ...other, children: hidden && !keepMounted ? undefined : children }, | |||
extraProps: { ...other, children }, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
extraProps: { ...other, children }, | |
extraProps: other, |
This should be enough, no need to destructure children anymore ~
Was checking out the failing tests and found that this change would break the functionality when |
Fixes #1872