Skip to content

Commit 8170816

Browse files
Johann-Smdo
authored andcommitted
Detect if the dropdown is in a navbar or not when update is called
1 parent f640ec9 commit 8170816

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

js/src/dropdown.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,7 @@ const Dropdown = (($) => {
186186
}
187187

188188
update() {
189+
this._inNavbar = this._detectNavbar()
189190
if (this._popper !== null) {
190191
this._popper.scheduleUpdate()
191192
}

0 commit comments

Comments
 (0)