diff options
author | Mark Otto <markdotto@gmail.com> | 2018-06-22 08:55:23 +0300 |
---|---|---|
committer | Mark Otto <markdotto@gmail.com> | 2018-06-22 08:55:23 +0300 |
commit | eadeab9d1cf6a1d8315a5aab35f247034931ea6e (patch) | |
tree | 660e3dd5d924afcf3cd595ac7dd41fb86842cdc9 /js/dist/tab.js | |
parent | e59265c42db4c9fec397fd92e9646def0b2b4200 (diff) |
dist
Diffstat (limited to 'js/dist/tab.js')
-rw-r--r-- | js/dist/tab.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/js/dist/tab.js b/js/dist/tab.js index 4996435c92..74d6b13a7f 100644 --- a/js/dist/tab.js +++ b/js/dist/tab.js @@ -97,7 +97,7 @@ var Tab = function ($) { } if (selector) { - target = $(selector)[0]; + target = document.querySelector(selector); } this._activate(this._element, listElement); @@ -179,7 +179,8 @@ var Tab = function ($) { var dropdownElement = $(element).closest(Selector.DROPDOWN)[0]; if (dropdownElement) { - $(dropdownElement).find(Selector.DROPDOWN_TOGGLE).addClass(ClassName.ACTIVE); + var dropdownToggleList = [].slice.call(dropdownElement.querySelectorAll(Selector.DROPDOWN_TOGGLE)); + $(dropdownToggleList).addClass(ClassName.ACTIVE); } element.setAttribute('aria-expanded', true); |