mirror of
https://github.com/Hopiu/bootstrap.git
synced 2026-03-18 13:30:23 +00:00
tabs: make the active selector more restrictive again.
When one uses say a carousel inside a tab, the `.active` selector previously matches the carousel ones too leading to broken tabs. It's not the perfect solution but should the job for now.
This commit is contained in:
parent
10bb79a250
commit
b55fa5579b
1 changed files with 1 additions and 1 deletions
|
|
@ -44,7 +44,7 @@ const Tab = (($) => {
|
|||
const Selector = {
|
||||
DROPDOWN : '.dropdown',
|
||||
NAV_LIST_GROUP : '.nav, .list-group',
|
||||
ACTIVE : '.active',
|
||||
ACTIVE : '> .nav-item > .active, > .active',
|
||||
DATA_TOGGLE : '[data-toggle="tab"], [data-toggle="pill"], [data-toggle="list"]',
|
||||
DROPDOWN_TOGGLE : '.dropdown-toggle',
|
||||
DROPDOWN_ACTIVE_CHILD : '> .dropdown-menu .active'
|
||||
|
|
|
|||
Loading…
Reference in a new issue