From: Johann-S Date: Thu, 8 Jun 2017 20:12:25 +0000 (+0200) Subject: Detect if the dropdown is in a navbar or not when update is called X-Git-Tag: v4.0.0-beta~133^2~5 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=817081609490eacab1e0217094fb757fe3568cbf;p=thirdparty%2Fbootstrap.git Detect if the dropdown is in a navbar or not when update is called --- 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() }