From a380efff43c333de4f5a6cf805193a86b8b0f368 Mon Sep 17 00:00:00 2001 From: Kamaljit Sharma Date: Tue, 30 May 2023 20:18:31 +0530 Subject: [PATCH 1/3] fix: Web-Share code-Back tooltip appears at LHN top corner --- src/components/Tooltip/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/Tooltip/index.js b/src/components/Tooltip/index.js index 5403cf3055b1..942160e99144 100644 --- a/src/components/Tooltip/index.js +++ b/src/components/Tooltip/index.js @@ -106,7 +106,7 @@ class Tooltip extends PureComponent { TooltipSense.deactivate(); - this.setState({isVisible: false}); + this.setState({isVisible: false, isRendered: false}); } render() { From a7dc67ab97410ecbbccb3bdbc0290a8c43b53923 Mon Sep 17 00:00:00 2001 From: Kamaljit Sharma Date: Wed, 31 May 2023 15:06:23 +0530 Subject: [PATCH 2/3] fix: Web-Share code-Back tooltip appears at LHN top corner on safari --- src/components/Tooltip/index.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/components/Tooltip/index.js b/src/components/Tooltip/index.js index 942160e99144..bdd3ee86604f 100644 --- a/src/components/Tooltip/index.js +++ b/src/components/Tooltip/index.js @@ -51,6 +51,9 @@ class Tooltip extends PureComponent { * @param {Object} bounds - updated bounds */ updateBounds(bounds) { + if(bounds.width === 0) { + this.setState({isRendered: false}); + } this.setState({ wrapperWidth: bounds.width, wrapperHeight: bounds.height, @@ -106,7 +109,7 @@ class Tooltip extends PureComponent { TooltipSense.deactivate(); - this.setState({isVisible: false, isRendered: false}); + this.setState({isVisible: false}); } render() { From fa8116b6d9254dd02a4001c5ddf7e125ac70e531 Mon Sep 17 00:00:00 2001 From: Kamaljit Sharma Date: Wed, 31 May 2023 17:34:54 +0530 Subject: [PATCH 3/3] fix: linting error --- src/components/Tooltip/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/Tooltip/index.js b/src/components/Tooltip/index.js index bdd3ee86604f..616f548136a0 100644 --- a/src/components/Tooltip/index.js +++ b/src/components/Tooltip/index.js @@ -51,7 +51,7 @@ class Tooltip extends PureComponent { * @param {Object} bounds - updated bounds */ updateBounds(bounds) { - if(bounds.width === 0) { + if (bounds.width === 0) { this.setState({isRendered: false}); } this.setState({