aboutsummaryrefslogtreecommitdiff
path: root/js/src
diff options
context:
space:
mode:
authorJohann-S <[email protected]>2017-06-08 22:12:25 +0200
committerMark Otto <[email protected]>2017-06-17 13:12:39 -0700
commit817081609490eacab1e0217094fb757fe3568cbf (patch)
tree62b03b51c4651c8e9e05d4655aef1bf7c71d0f25 /js/src
parentf640ec96622790237bf0a5659440eb726af3118b (diff)
downloadbootstrap-817081609490eacab1e0217094fb757fe3568cbf.tar.xz
bootstrap-817081609490eacab1e0217094fb757fe3568cbf.zip
Detect if the dropdown is in a navbar or not when update is called
Diffstat (limited to 'js/src')
-rw-r--r--js/src/dropdown.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/js/src/dropdown.js b/js/src/dropdown.js
index 86203c983..057cfa433 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()
}