Commit 97027a2f authored by Heinrich Fenkart's avatar Heinrich Fenkart
Browse files

Merge pull request #14573 from twbs/indom-check-cross-doc

Make inDom check of tooltip cross document compatible
parents e29c7504 759a95b0
4 merge requests!28721Hot test,!16605Test pull please ignore,!22103test,!25326Adjust examples
Showing with 1 addition and 1 deletion
+1 -1
......@@ -152,7 +152,7 @@
if (this.hasContent() && this.enabled) {
this.$element.trigger(e)
var inDom = $.contains(document.documentElement, this.$element[0])
var inDom = $.contains(this.$element[0].ownerDocument.documentElement, this.$element[0])
if (e.isDefaultPrevented() || !inDom) return
var that = this
......
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