Skip to content

Commit

Permalink
trying to fix it
Browse files Browse the repository at this point in the history
  • Loading branch information
GeoSot committed Aug 30, 2021
1 parent 38945e9 commit aa40d44
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions js/src/tooltip.js
Original file line number Diff line number Diff line change
Expand Up @@ -235,9 +235,10 @@ class Tooltip extends BaseComponent {
}

// Trick to recreate tooltip in case of new title given by NOT documented 'data-bs-original-title'
// Trick will be removed on a following version, in favor of a 'setContent' ,method
if (this.tip && this.getTitle() !== this.tip.querySelector(SELECTOR_TOOLTIP_INNER).innerHTML) {
// Trick will be removed on a following version, in favor of a 'setContent', method
if (this.tip && this._element.hasAttribute('data-bs-original-title')) {
this._disposePopper()
this.tip.remove()
this.tip = null
}

Expand Down

0 comments on commit aa40d44

Please sign in to comment.