0
0
mirror of https://github.com/twbs/bootstrap.git synced 2024-11-29 11:24:18 +01:00

Detect if the dropdown is in a navbar or not when update is called

This commit is contained in:
Johann-S 2017-06-08 22:12:25 +02:00 committed by Mark Otto
parent f640ec9662
commit 8170816094

View File

@ -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()
} }