diff options
author | XhmikosR <xhmikosr@gmail.com> | 2020-12-04 17:23:28 +0300 |
---|---|---|
committer | XhmikosR <xhmikosr@gmail.com> | 2020-12-06 19:42:40 +0300 |
commit | 4eea630d16ae7bfa114fdc2f488420236c59576e (patch) | |
tree | a0fb55665bc78ba6e21839c0c781f9866342749d /js/src/dropdown.js | |
parent | d8f247392d203726a5d59404d96b54d8987fbc01 (diff) |
Be explicit with `element.closest()`'s return value
Diffstat (limited to 'js/src/dropdown.js')
-rw-r--r-- | js/src/dropdown.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/js/src/dropdown.js b/js/src/dropdown.js index 4e25f57299..048319d49d 100644 --- a/js/src/dropdown.js +++ b/js/src/dropdown.js @@ -287,7 +287,7 @@ class Dropdown extends BaseComponent { } _detectNavbar() { - return Boolean(this._element.closest(`.${CLASS_NAME_NAVBAR}`)) + return this._element.closest(`.${CLASS_NAME_NAVBAR}`) !== null } _getPopperConfig() { |