From d7478f8f8bb4df989b582fdf071020978d16a23b Mon Sep 17 00:00:00 2001 From: GeoSot Date: Mon, 17 Jan 2022 15:29:28 +0200 Subject: [PATCH] test --- js/src/tooltip.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/src/tooltip.js b/js/src/tooltip.js index 6306bb9c4ca1..82f32ca7c1b1 100644 --- a/js/src/tooltip.js +++ b/js/src/tooltip.js @@ -225,6 +225,7 @@ class Tooltip extends BaseComponent { // todo v6 remove this OR make it optional if (this.tip) { this.tip.remove() + this.tip = null } const tip = this._getTipElement() @@ -395,7 +396,7 @@ class Tooltip extends BaseComponent { } _getTitle() { - return this._config.title + return this._resolvePossibleFunction(this._config.title) || this._config.originalTitle } // Private @@ -614,7 +615,6 @@ class Tooltip extends BaseComponent { } config.originalTitle = this._element.getAttribute('title') || '' - config.title = this._resolvePossibleFunction(config.title) || config.originalTitle if (typeof config.title === 'number') { config.title = config.title.toString() }