diff options
| author | Johann-S <[email protected]> | 2017-04-19 15:08:06 +0200 |
|---|---|---|
| committer | Johann-S <[email protected]> | 2017-05-14 11:41:19 +0200 |
| commit | e5a0471b0b618409e30529a5e02933d5a74a4cc5 (patch) | |
| tree | fb144078e849108c584946f6842d6316e0fd3603 /js/src/dropdown.js | |
| parent | fc8b85b62670b8396cac7fb821c025c58fa77a78 (diff) | |
| download | bootstrap-e5a0471b0b618409e30529a5e02933d5a74a4cc5.tar.xz bootstrap-e5a0471b0b618409e30529a5e02933d5a74a4cc5.zip | |
Add an update method to allow to update position for Tooltip/Popover/Dropdown manually
Diffstat (limited to 'js/src/dropdown.js')
| -rw-r--r-- | js/src/dropdown.js | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/js/src/dropdown.js b/js/src/dropdown.js index 613a23812..0c082edd6 100644 --- a/js/src/dropdown.js +++ b/js/src/dropdown.js @@ -185,8 +185,14 @@ const Dropdown = (($) => { if (this._popper !== null) { this._popper.destroy() } + this._popper = null } + update() { + if (this._popper !== null) { + this._popper.scheduleUpdate() + } + } // private |
