Commit 21de05c8 authored by Chris Rebert's avatar Chris Rebert
Browse files

don't show tooltips/popovers whose element isn't in the DOM; fixes #13268

parent b23ed1b0
Showing with 3 additions and 2 deletions
+3 -2
......@@ -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()
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment