-
-
Notifications
You must be signed in to change notification settings - Fork 32.4k
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
Tab panel disappears when selecting checkbox #4403
Comments
@cynicaldevil do you have a demo or can I look into your source code? |
@puranjayjain Where can I post a demo? |
@cynicaldevil in a new github repo. |
I've seen this happen as well. Calling event.stopPropagation() from inside the checkbox onCheck handler fixed the issue for me. |
@brunor It works!! |
I have the same issue with TextField component. If it's within the Tab, the onChange event on the TextField component will propagate till the Tabs component |
I guess we must call event.stopPropagation() in any event inside the Tabs' content. |
I have a tabs component with multiple tabs inside it, and I have a checkbox component inside one of the tabs' content panels. Whenever I select/deselect the checkbox, all the content of that tab panel just disappears.
The same happens when I use a plain HTML checkbox, and also when I use the material-ui 'Toggle' component'. I haven't tested for other components yet.
The text was updated successfully, but these errors were encountered: