diff --git a/packages/components/src/tooltip/index.native.js b/packages/components/src/tooltip/index.native.js index c16990c60ed56..acca7781dd6c1 100644 --- a/packages/components/src/tooltip/index.native.js +++ b/packages/components/src/tooltip/index.native.js @@ -119,6 +119,10 @@ const Tooltip = ( { // Manage tooltip visibility and position in relation to keyboard useEffect( () => { + if ( ! visible ) { + return; + } + // Update tooltip position if keyboard is visible if ( keyboardVisible ) { getReferenceElementPosition(); @@ -129,7 +133,7 @@ const Tooltip = ( { setAnimating( true ); setVisible( false ); } - }, [ keyboardVisible ] ); + }, [ visible, keyboardVisible ] ); // Manage tooltip position during keyboard frame changes useEffect( () => {