Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
GeoSot committed Feb 4, 2022
1 parent 0179665 commit 4d9107d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions js/src/tooltip.js
Expand Up @@ -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()
Expand Down Expand Up @@ -395,7 +396,7 @@ class Tooltip extends BaseComponent {
}

_getTitle() {
return this._config.title
return this._resolvePossibleFunction(this._config.title) || this._config.originalTitle
}

// Private
Expand Down Expand Up @@ -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()
}
Expand Down

0 comments on commit 4d9107d

Please sign in to comment.