From dfae892801ffc194de6aec34d543d908db3dd8e1 Mon Sep 17 00:00:00 2001 From: GeoSot Date: Wed, 27 Jul 2022 17:40:05 +0300 Subject: Re-set tooltip title, on disposal (#36751) fix(reg): Re-set tooltip title, on disposal --- js/src/tooltip.js | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'js/src') diff --git a/js/src/tooltip.js b/js/src/tooltip.js index 54ec0367e..2c5f03a29 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() } -- cgit v1.2.3