]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
Detect if the dropdown is in a navbar or not when update is called
authorJohann-S <johann.servoire@gmail.com>
Thu, 8 Jun 2017 20:12:25 +0000 (22:12 +0200)
committerMark Otto <markd.otto@gmail.com>
Sat, 17 Jun 2017 20:12:39 +0000 (13:12 -0700)
js/src/dropdown.js

index 86203c983dff158ff432ef3eca057c0882071637..057cfa4334ad259a581cb58b48ae859f95f3a985 100644 (file)
@@ -186,6 +186,7 @@ const Dropdown = (($) => {
     }
 
     update() {
+      this._inNavbar = this._detectNavbar()
       if (this._popper !== null) {
         this._popper.scheduleUpdate()
       }