Skip to content

Commit d213b6f

Browse files
committed
fix: disable popper if position is static
1 parent f0b44d3 commit d213b6f

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

js/src/dropdown.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ class Dropdown {
255255
this._inNavbar = this._detectNavbar()
256256
this._inHeader = this._detectHeader()
257257
if (this._popper) {
258-
this._popper.scheduleUpdate()
258+
this._popper.update()
259259
}
260260
}
261261

@@ -364,7 +364,8 @@ class Dropdown {
364364

365365
// Disable Popper.js if we have a static display
366366
if (this._config.display === 'static') {
367-
popperConfig.modifiers.applyStyle = {
367+
popperConfig.modifiers = {
368+
name: 'applyStyles',
368369
enabled: false
369370
}
370371
}

0 commit comments

Comments
 (0)