1
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-08-19 11:51:23 +02:00

Add an update method to allow to update position for Tooltip/Popover/Dropdown manually

This commit is contained in:
Johann-S
2017-04-19 15:08:06 +02:00
parent fc8b85b626
commit e5a0471b0b
5 changed files with 29 additions and 2 deletions

View File

@@ -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