From 3ef3fb5c7d9a673fcc30d8af09671516a2a3c87f Mon Sep 17 00:00:00 2001 From: David Ford Date: Sat, 15 Feb 2020 00:22:09 -0600 Subject: [PATCH] fix: Prevent Tooltip setState call if not open --- packages/react/src/components/Tooltip/Tooltip.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/react/src/components/Tooltip/Tooltip.js b/packages/react/src/components/Tooltip/Tooltip.js index 0a11262a4308..34d5517fa7f0 100644 --- a/packages/react/src/components/Tooltip/Tooltip.js +++ b/packages/react/src/components/Tooltip/Tooltip.js @@ -331,7 +331,7 @@ class Tooltip extends Component { evt.target && this._tooltipEl && this._tooltipEl.contains(evt.target); - if (!shouldPreventClose) { + if (!shouldPreventClose && this.state.open) { this._handleUserInputOpenClose(evt, { open: false }); } };