mirror of
https://github.com/Hopiu/bootstrap.git
synced 2026-03-23 07:50:23 +00:00
Merge pull request #14573 from twbs/indom-check-cross-doc
Make inDom check of tooltip cross document compatible
This commit is contained in:
commit
97027a2f6f
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue