mirror of
https://github.com/twbs/bootstrap.git
synced 2025-08-11 16:14:04 +02:00
Detect if the dropdown is in a navbar or not when update is called
This commit is contained in:
@@ -186,6 +186,7 @@ const Dropdown = (($) => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
update() {
|
update() {
|
||||||
|
this._inNavbar = this._detectNavbar()
|
||||||
if (this._popper !== null) {
|
if (this._popper !== null) {
|
||||||
this._popper.scheduleUpdate()
|
this._popper.scheduleUpdate()
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user