From aa276b2f076fea5612d03cfccd365d0e18691f3f Mon Sep 17 00:00:00 2001 From: David Date: Mon, 17 Feb 2020 16:54:12 -0600 Subject: [PATCH] fix: Prevent Tooltip setState call if not open (#5363) --- 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 }); } };