diff options
author | GeoSot <geo.sotis@gmail.com> | 2022-07-27 17:40:05 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-27 17:40:05 +0300 |
commit | dfae892801ffc194de6aec34d543d908db3dd8e1 (patch) | |
tree | d50188d942ae6fd7b050872b11fdcb544b2a0299 /js/src/tooltip.js | |
parent | 44c9c8df8d8e5be84d5bea47f8ee110b64e86e62 (diff) |
Re-set tooltip title, on disposal (#36751)
fix(reg): Re-set tooltip title, on disposal
Diffstat (limited to 'js/src/tooltip.js')
-rw-r--r-- | js/src/tooltip.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/js/src/tooltip.js b/js/src/tooltip.js index 54ec0367ed..2c5f03a293 100644 --- a/js/src/tooltip.js +++ b/js/src/tooltip.js @@ -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() } |