2
0
mirror of https://github.com/tenrok/bootstrap.git synced 2026-05-15 11:59:39 +03:00

Be explicit with element.closest()'s return value

This commit is contained in:
XhmikosR
2020-12-04 16:23:28 +02:00
parent d8f247392d
commit 4eea630d16
+1 -1
View File
@@ -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() {