diff options
| author | XhmikosR <[email protected]> | 2017-07-14 17:49:30 +0300 |
|---|---|---|
| committer | XhmikosR <[email protected]> | 2017-08-11 15:04:07 +0300 |
| commit | b55fa5579b409be76f551cbb3c1e46e1ad71bdfd (patch) | |
| tree | c006903b0b40957f8e81ccc5749ef7220f2996e1 /js/src | |
| parent | 10bb79a250b72c3e6c2b010aa0d9c01192b1a533 (diff) | |
| download | bootstrap-b55fa5579b409be76f551cbb3c1e46e1ad71bdfd.tar.xz bootstrap-b55fa5579b409be76f551cbb3c1e46e1ad71bdfd.zip | |
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.
Diffstat (limited to 'js/src')
| -rw-r--r-- | js/src/tab.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/js/src/tab.js b/js/src/tab.js index 1613bbb7d..4fd69c507 100644 --- a/js/src/tab.js +++ b/js/src/tab.js @@ -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' |
