Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
louismaximepiton committed Jun 15, 2022
1 parent ac19573 commit 0bff037
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion js/src/popover.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ class Popover extends Tooltip {

// Overrides
_isWithContent() {
return this._getTitle() || this._getContent()
return this._config.title || this._config.originalTitle || this._config.content
}

// Private
Expand Down
4 changes: 1 addition & 3 deletions js/src/tooltip.js
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,7 @@ class Tooltip extends BaseComponent {

// Protected
_isWithContent() {
return Boolean(this._getTitle())
return this._config.title || this._config.originalTitle
}

_getTipElement() {
Expand Down Expand Up @@ -344,8 +344,6 @@ class Tooltip extends BaseComponent {
setContent(content) {
this._newContent = content
if (this._isShown()) {
this.tip.remove()
this.tip = null
this._disposePopper()
this.show()
}
Expand Down

0 comments on commit 0bff037

Please sign in to comment.