diff options
| author | XhmikosR <[email protected]> | 2021-07-30 09:28:51 +0300 |
|---|---|---|
| committer | XhmikosR <[email protected]> | 2021-10-05 19:52:11 +0300 |
| commit | 666fe596bf4629777f995dd79046b1db632ffdfb (patch) | |
| tree | 9e14fcf9c5d325e668d75d2b313242e16e7fbec3 /js/src/tab.js | |
| parent | 2b4d0d166b58cabfb0384a2081d84e51df84e37f (diff) | |
| download | bootstrap-666fe596bf4629777f995dd79046b1db632ffdfb.tar.xz bootstrap-666fe596bf4629777f995dd79046b1db632ffdfb.zip | |
Enable `unicorn/no-array-for-each` rule
Diffstat (limited to 'js/src/tab.js')
| -rw-r--r-- | js/src/tab.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/js/src/tab.js b/js/src/tab.js index 581162c50..dd62df505 100644 --- a/js/src/tab.js +++ b/js/src/tab.js @@ -164,8 +164,9 @@ class Tab extends BaseComponent { const dropdownElement = element.closest(SELECTOR_DROPDOWN) if (dropdownElement) { - SelectorEngine.find(SELECTOR_DROPDOWN_TOGGLE, dropdownElement) - .forEach(dropdown => dropdown.classList.add(CLASS_NAME_ACTIVE)) + for (const dropdown of SelectorEngine.find(SELECTOR_DROPDOWN_TOGGLE, dropdownElement)) { + dropdown.classList.add(CLASS_NAME_ACTIVE) + } } element.setAttribute('aria-expanded', true) |
