From 817081609490eacab1e0217094fb757fe3568cbf Mon Sep 17 00:00:00 2001 From: Johann-S Date: Thu, 8 Jun 2017 22:12:25 +0200 Subject: [PATCH] Detect if the dropdown is in a navbar or not when update is called --- js/src/dropdown.js | 1 + 1 file changed, 1 insertion(+) diff --git a/js/src/dropdown.js b/js/src/dropdown.js index 86203c983d..057cfa4334 100644 --- a/js/src/dropdown.js +++ b/js/src/dropdown.js @@ -186,6 +186,7 @@ const Dropdown = (($) => { } update() { + this._inNavbar = this._detectNavbar() if (this._popper !== null) { this._popper.scheduleUpdate() }