-
-
Notifications
You must be signed in to change notification settings - Fork 79k
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
Prevent Tab link to add active class to Parent li #15186
Comments
$('.nav-tabs').on('show.bs.tab', 'a', function(event) {
event.preventDefault();
});
$('.nav-tabs').on('hide.bs.tab', 'a', function(event) {
event.preventDefault();
}); Above (any of above handlers) stops plugin internal routine from managing previous/current |
@peterblazejewicz |
Does the The code essentially says |
I don't think we'll be adding anything to the project to do this. Thanks though. |
@mdo, Does this line in tab.js not seem like it is unintentionally always adding the - if (element.parent('.dropdown-menu')) {
+ if (element.parent('.dropdown-menu').length) { |
Yeah, that's definitely a bug. Opened #15630. |
When I click on a link which has
data-toggle="tab"
insideli
it automatically addactive
class to parentli
.Is there a way I can prevent bootstrap tabs link to add
active
class to current parentli
because I want to do it manually?The text was updated successfully, but these errors were encountered: