From fce8e498c779c50ee74447d84f7ad3e3688e25a8 Mon Sep 17 00:00:00 2001 From: Gerardo Pacheco Date: Tue, 5 Jan 2021 16:54:39 +0100 Subject: [PATCH] Mobile - Link settings - Fix data not being saved when closing the bottom sheet (#27997) --- packages/components/src/mobile/link-settings/index.native.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/components/src/mobile/link-settings/index.native.js b/packages/components/src/mobile/link-settings/index.native.js index 4d5b2a496a2999..7b369041e04ea8 100644 --- a/packages/components/src/mobile/link-settings/index.native.js +++ b/packages/components/src/mobile/link-settings/index.native.js @@ -89,7 +89,7 @@ function LinkSettings( { const { onHandleClosingBottomSheet } = useContext( BottomSheetContext ); useEffect( () => { - if ( ! onLinkCellPressed ) { + if ( onHandleClosingBottomSheet ) { onHandleClosingBottomSheet( onCloseSettingsSheet ); } }, [ urlInputValue, labelInputValue, linkRelInputValue ] );