From 058e2bbe12608b0d859cc3de94b5532ab6340010 Mon Sep 17 00:00:00 2001 From: Bernhard Owen Josephus Date: Mon, 16 Sep 2024 10:36:47 +0700 Subject: [PATCH 1/2] disable focus trap for search bottom tab screen --- src/components/FocusTrap/BOTTOM_TAB_SCREENS.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/FocusTrap/BOTTOM_TAB_SCREENS.ts b/src/components/FocusTrap/BOTTOM_TAB_SCREENS.ts index b472b80e5cbd..f6a4f5ba6e83 100644 --- a/src/components/FocusTrap/BOTTOM_TAB_SCREENS.ts +++ b/src/components/FocusTrap/BOTTOM_TAB_SCREENS.ts @@ -1,6 +1,6 @@ import NAVIGATORS from '@src/NAVIGATORS'; import SCREENS from '@src/SCREENS'; -const BOTTOM_TAB_SCREENS = [SCREENS.HOME, SCREENS.SETTINGS.ROOT, NAVIGATORS.BOTTOM_TAB_NAVIGATOR]; +const BOTTOM_TAB_SCREENS = [SCREENS.HOME, SCREENS.SETTINGS.ROOT, NAVIGATORS.BOTTOM_TAB_NAVIGATOR, SCREENS.SEARCH.BOTTOM_TAB]; export default BOTTOM_TAB_SCREENS; From 8ba1afbbb4d5594dea588b7b948d42c252492883 Mon Sep 17 00:00:00 2001 From: Bernhard Owen Josephus Date: Mon, 16 Sep 2024 10:37:19 +0700 Subject: [PATCH 2/2] disable press on enter --- src/components/SelectionList/Search/ActionCell.tsx | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/components/SelectionList/Search/ActionCell.tsx b/src/components/SelectionList/Search/ActionCell.tsx index f535c0342e55..faafa6159dc1 100644 --- a/src/components/SelectionList/Search/ActionCell.tsx +++ b/src/components/SelectionList/Search/ActionCell.tsx @@ -69,7 +69,6 @@ function ActionCell({action = CONST.SEARCH.ACTION_TYPES.VIEW, isLargeScreenWidth text={translate(actionTranslationsMap[CONST.SEARCH.ACTION_TYPES.VIEW])} onPress={goToItem} small - pressOnEnter style={[styles.w100]} innerStyles={buttonInnerStyles} link={isChildListItem} @@ -84,7 +83,6 @@ function ActionCell({action = CONST.SEARCH.ACTION_TYPES.VIEW, isLargeScreenWidth text={text} onPress={goToItem} small - pressOnEnter style={[styles.w100]} innerStyles={buttonInnerStyles} />