Commit 81708160 authored by Johann-S's avatar Johann-S Committed by Mark Otto
Browse files

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

parent f640ec96
Showing with 1 addition and 0 deletions
+1 -0
......@@ -186,6 +186,7 @@ const Dropdown = (($) => {
}
update() {
this._inNavbar = this._detectNavbar()
if (this._popper !== null) {
this._popper.scheduleUpdate()
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment