mirror of
https://github.com/twbs/bootstrap.git
synced 2022-11-09 12:25:43 -05:00
don't show tooltips/popovers whose element isn't in the DOM; fixes #13268
This commit is contained in:
parent
b23ed1b034
commit
21de05c8c0
1 changed files with 3 additions and 2 deletions
|
@ -145,8 +145,9 @@
|
|||
if (this.hasContent() && this.enabled) {
|
||||
this.$element.trigger(e)
|
||||
|
||||
if (e.isDefaultPrevented()) return
|
||||
var that = this;
|
||||
var inDom = $.contains(document.documentElement, this.$element[0])
|
||||
if (e.isDefaultPrevented() || !inDom) return
|
||||
var that = this
|
||||
|
||||
var $tip = this.tip()
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue