mirror of
https://github.com/twbs/bootstrap.git
synced 2025-01-17 09:52:29 +01:00
don't show tooltips/popovers whose element isn't in the DOM; fixes #13268
This commit is contained in:
parent
b23ed1b034
commit
21de05c8c0
@ -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…
x
Reference in New Issue
Block a user