From 9cf8b95d457b38953557db9efaab3b04b10bf29d Mon Sep 17 00:00:00 2001 From: Chandler Prall Date: Wed, 15 Aug 2018 09:28:35 -0600 Subject: [PATCH 1/2] Update tooltip positioning when content updates --- src/components/tool_tip/tool_tip.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/components/tool_tip/tool_tip.js b/src/components/tool_tip/tool_tip.js index 21f58ef27cc..fcf958822b6 100644 --- a/src/components/tool_tip/tool_tip.js +++ b/src/components/tool_tip/tool_tip.js @@ -11,6 +11,7 @@ import { EuiToolTipPopover } from './tool_tip_popover'; import { findPopoverPosition } from '../../services'; import makeId from '../form/form_row/make_id'; +import { EuiMutationObserver } from '../mutation_observer'; const positionsToClassNameMap = { top: 'euiToolTip--top', @@ -160,7 +161,12 @@ export class EuiToolTip extends Component { {...rest} >
- {content} + + {content} + ); From a15bf0b1ea7727baaefde9b2722ad73d12129f22 Mon Sep 17 00:00:00 2001 From: Chandler Prall Date: Wed, 15 Aug 2018 09:31:17 -0600 Subject: [PATCH 2/2] changelog --- CHANGELOG.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 704032bd9d5..8331774d8e7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,10 @@ - Added TypeScript definition for `findTestSubject` test util ([#1106](https://github.com/elastic/eui/pull/1106)) +**Bug fixes** + +- Fixed `EuiToolTip`'s inability to update its position when tooltip content changes ([#1116](https://github.com/elastic/eui/pull/1116)) + ## [`3.6.0`](https://github.com/elastic/eui/tree/v3.6.0) - Added `EuiCopy` ([#1112](https://github.com/elastic/eui/pull/1112))