-
-
Notifications
You must be signed in to change notification settings - Fork 78.9k
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
Fix active class toggling of tabs within dropdown #37151
Conversation
704d222
to
58be58d
Compare
3d03976
to
7ff0090
Compare
Looking back the commits history, Lines 116 to 120 in 63d38b1
So if we want to bring back the exact old behavior, I think it would be better to rename the @cpsievert what do you think about this? |
@GeoSot I don't think that's necessary since, in the new implementation, by the time we reach Lines 103 to 108 in 37e2e7e
and Lines 129 to 134 in 37e2e7e
|
I 've checked it and you are right. Thanks, @cpsievert 👍 |
7ff0090
to
7840191
Compare
Closes #36947 (a regression introduced by #33079, cc @GeoSot)
As the codepen in #36947 demonstrates, when clicking on the 2nd tab in a dropdown, all the tabs within the dropdown are marked with an active class. This happens because, the current logic in
_toggleDropdown()
toggles the active class on the first tab within the dropdown when it shouldn't be