Skip to content

Commit

Permalink
Update bootstrap.js
Browse files Browse the repository at this point in the history
  • Loading branch information
hrigu authored Apr 15, 2021
1 parent 1911361 commit 30316b9
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions assets/javascripts/bootstrap.js
Original file line number Diff line number Diff line change
Expand Up @@ -1486,9 +1486,10 @@ if (typeof jQuery === 'undefined') {

this.applyPlacement(calculatedOffset, placement)

// Bugfix Optor 2021 https://github.com/twbs/bootstrap/issues/21830
var complete = function () {
var prevHoverState = that.hoverState
that.$element.trigger('shown.bs.' + that.type)
null!=that.$element && that.$element.trigger('shown.bs.' + that.type)
that.hoverState = null

if (prevHoverState == 'out') that.leave(that)
Expand Down Expand Up @@ -1728,11 +1729,12 @@ if (typeof jQuery === 'undefined') {
}
}

// Bugfix Optor 2021 https://github.com/twbs/bootstrap/issues/21830
Tooltip.prototype.destroy = function () {
var that = this
clearTimeout(this.timeout)
this.hide(function () {
that.$element.off('.' + that.type).removeData('bs.' + that.type)
null!=that.$element && that.$element.off('.' + that.type).removeData('bs.' + that.type)
if (that.$tip) {
that.$tip.detach()
}
Expand All @@ -1743,7 +1745,6 @@ if (typeof jQuery === 'undefined') {
})
}


// TOOLTIP PLUGIN DEFINITION
// =========================

Expand Down

0 comments on commit 30316b9

Please sign in to comment.