mirror of
https://github.com/twbs/bootstrap.git
synced 2025-08-13 09:04:14 +02: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:
@@ -44,7 +44,7 @@ const Tab = (($) => {
|
|||||||
const Selector = {
|
const Selector = {
|
||||||
DROPDOWN : '.dropdown',
|
DROPDOWN : '.dropdown',
|
||||||
NAV_LIST_GROUP : '.nav, .list-group',
|
NAV_LIST_GROUP : '.nav, .list-group',
|
||||||
ACTIVE : '.active',
|
ACTIVE : '> .nav-item > .active, > .active',
|
||||||
DATA_TOGGLE : '[data-toggle="tab"], [data-toggle="pill"], [data-toggle="list"]',
|
DATA_TOGGLE : '[data-toggle="tab"], [data-toggle="pill"], [data-toggle="list"]',
|
||||||
DROPDOWN_TOGGLE : '.dropdown-toggle',
|
DROPDOWN_TOGGLE : '.dropdown-toggle',
|
||||||
DROPDOWN_ACTIVE_CHILD : '> .dropdown-menu .active'
|
DROPDOWN_ACTIVE_CHILD : '> .dropdown-menu .active'
|
||||||
|
Reference in New Issue
Block a user