mirror of
https://github.com/twbs/bootstrap.git
synced 2022-11-09 12:25:43 -05:00
Detect if the dropdown is in a navbar or not when update is called
This commit is contained in:
parent
f640ec9662
commit
8170816094
1 changed files with 1 additions and 0 deletions
|
@ -186,6 +186,7 @@ const Dropdown = (($) => {
|
|||
}
|
||||
|
||||
update() {
|
||||
this._inNavbar = this._detectNavbar()
|
||||
if (this._popper !== null) {
|
||||
this._popper.scheduleUpdate()
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue