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

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

Make inDom check of tooltip cross document compatible
parents e29c7504 759a95b0
......@@ -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
......
Markdown is supported
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