mirror of
https://github.com/twbs/bootstrap.git
synced 2025-03-13 13:29:25 +01:00
Be explicit with element.closest()
's return value
This commit is contained in:
parent
d8f247392d
commit
4eea630d16
@ -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…
x
Reference in New Issue
Block a user