Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IE11 doesn't support document.contains() #1190

Merged
merged 2 commits into from Sep 13, 2018
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/components/tool_tip/tool_tip.js
Expand Up @@ -72,7 +72,7 @@ export class EuiToolTip extends Component {
// when the tooltip is visible, this checks if the anchor is still part of document
// this fixes when the react root is removed from the dom without unmounting
// https://github.com/elastic/eui/issues/1105
if (document.contains(this.anchor) === false) {
if (document.body.contains(this.anchor) === false) {
// the anchor is no longer part of `document`
this.hideToolTip();
} else {
Expand Down