Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/twbs/bootstrap.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authorXhmikosR <xhmikosr@gmail.com>2020-12-04 17:23:28 +0300
committerXhmikosR <xhmikosr@gmail.com>2020-12-06 19:42:40 +0300
commit4eea630d16ae7bfa114fdc2f488420236c59576e (patch)
treea0fb55665bc78ba6e21839c0c781f9866342749d /js
parentd8f247392d203726a5d59404d96b54d8987fbc01 (diff)
Be explicit with `element.closest()`'s return value
Diffstat (limited to 'js')
-rw-r--r--js/src/dropdown.js2
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() {