Fix toggle for Tooltips/Popover which was called even if the Tooltip/Popover was disabled
This commit is contained in:
parent
3a6fc265f6
commit
4571ab0e57
3 changed files with 50 additions and 2 deletions
|
|
@ -184,6 +184,10 @@ const Tooltip = (($) => {
|
|||
}
|
||||
|
||||
toggle(event) {
|
||||
if (!this._isEnabled) {
|
||||
return
|
||||
}
|
||||
|
||||
if (event) {
|
||||
const dataKey = this.constructor.DATA_KEY
|
||||
let context = $(event.currentTarget).data(dataKey)
|
||||
|
|
@ -234,8 +238,8 @@ const Tooltip = (($) => {
|
|||
if (this._popper !== null) {
|
||||
this._popper.destroy()
|
||||
}
|
||||
this._popper = null
|
||||
|
||||
this._popper = null
|
||||
this.element = null
|
||||
this.config = null
|
||||
this.tip = null
|
||||
|
|
@ -706,7 +710,6 @@ const Tooltip = (($) => {
|
|||
}
|
||||
})
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue