1
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-08-06 13:46:42 +02:00

Re-set tooltip title, on disposal (#36751)

fix(reg): Re-set tooltip title, on disposal
This commit is contained in:
GeoSot
2022-07-27 17:40:05 +03:00
committed by GitHub
parent 44c9c8df8d
commit dfae892801
2 changed files with 23 additions and 0 deletions

View File

@@ -185,6 +185,10 @@ class Tooltip extends BaseComponent {
this.tip.remove()
}
if (this._config.originalTitle) {
this._element.setAttribute('title', this._config.originalTitle)
}
this._disposePopper()
super.dispose()
}