mirror of
https://github.com/tenrok/bootstrap.git
synced 2026-06-17 19:21:23 +03:00
Be explicit with element.closest()'s return value
This commit is contained in:
+1
-1
@@ -287,7 +287,7 @@ class Dropdown extends BaseComponent {
|
|||||||
}
|
}
|
||||||
|
|
||||||
_detectNavbar() {
|
_detectNavbar() {
|
||||||
return Boolean(this._element.closest(`.${CLASS_NAME_NAVBAR}`))
|
return this._element.closest(`.${CLASS_NAME_NAVBAR}`) !== null
|
||||||
}
|
}
|
||||||
|
|
||||||
_getPopperConfig() {
|
_getPopperConfig() {
|
||||||
|
|||||||
Reference in New Issue
Block a user