diff --git a/CHANGELOG.md b/CHANGELOG.md index a1e8d5353ad..a653e52e5a3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,8 @@ ## [`master`](https://github.com/elastic/eui/tree/master) -- Fixed issue with unselected tabs and aria-controls attribute in EuiTabbedContent +**Bug fixes** + +- Fixed an issue in `EuiTooltip` because IE1 didn't support `document.contains()` ([#1190](https://github.com/elastic/eui/pull/1190)) ## [`4.0.0`](https://github.com/elastic/eui/tree/v4.0.0) diff --git a/src/components/tool_tip/tool_tip.js b/src/components/tool_tip/tool_tip.js index 78183f23d22..79fadd97dbe 100644 --- a/src/components/tool_tip/tool_tip.js +++ b/src/components/tool_tip/tool_tip.js @@ -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 {