mirror of
https://github.com/Hopiu/bootstrap.git
synced 2026-03-30 11:10:23 +00:00
Be explicit with element.closest()'s return value
This commit is contained in:
parent
d8f247392d
commit
4eea630d16
1 changed files with 1 additions and 1 deletions
|
|
@ -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() {
|
||||
|
|
|
|||
Loading…
Reference in a new issue