-
-
Notifications
You must be signed in to change notification settings - Fork 32.3k
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
Toggle component needs an event.stopPropagation(); #4065
Comments
@mbrookes Do you think we should make the tabs API more like stepper so that the only controlled option isn't a magic callback on the parent container? (in this case, |
In my case, I am trying to do some kind of Wizard with tabs and a Previous/Next set of buttons. My state has activeTab, showNext and showPrevious. One function handles the change when clicking a tab, another when clicking on previous/next buttons. All was working well until I added a textbox in a Tab, and on keyDown it was triggering the onChange of Tabs... @ssolders workaround helped me, thank you. Maybe it would be nice to have a wizard component altogether, in my case, at least ? |
I am using the non-linear vertical stepper and having some issues with checkboxes resetting. |
Actually, I think that this issue is directly linked to #5210. That should be fixed now. |
Guys, this still in need! Having the same issue here. |
Problem Description
I'm displaying a list of Toggle-component inside a Tab-component, inside a Dialog.
I have 2 event-handlers, one for changing tab and one for changing a Toggle.
The issue occurs when I switch a toggle. My toggleHandler is called as expected but the change event also triggers the tabChangeHandler as well but without a valid tabName as parameter.
To solve this I had to change my _handleColumnToggle event handler to this:
The e.stopPropagation() could probably just be added to the Toggle-component to avoid this kind of behaviour? Took my a while to figure this out, would be good if this could be patched.
Versions
The text was updated successfully, but these errors were encountered: