diff options
| author | Johann-S <[email protected]> | 2017-06-08 22:12:25 +0200 |
|---|---|---|
| committer | Mark Otto <[email protected]> | 2017-06-17 13:12:39 -0700 |
| commit | 817081609490eacab1e0217094fb757fe3568cbf (patch) | |
| tree | 62b03b51c4651c8e9e05d4655aef1bf7c71d0f25 | |
| parent | f640ec96622790237bf0a5659440eb726af3118b (diff) | |
| download | bootstrap-817081609490eacab1e0217094fb757fe3568cbf.tar.xz bootstrap-817081609490eacab1e0217094fb757fe3568cbf.zip | |
Detect if the dropdown is in a navbar or not when update is called
| -rw-r--r-- | js/src/dropdown.js | 1 |
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() } |
