From 80cab79ffba3be1bee29aa7708bf465c0a24e3f6 Mon Sep 17 00:00:00 2001 From: Nabi Date: Thu, 11 Jun 2026 09:46:16 +0430 Subject: [PATCH 1/2] fix: prevent Enter save from reopening tax rate value field --- src/pages/workspace/taxes/WorkspaceCreateTaxValuePage.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/pages/workspace/taxes/WorkspaceCreateTaxValuePage.tsx b/src/pages/workspace/taxes/WorkspaceCreateTaxValuePage.tsx index 6acc7d6dc7e1..e4eddc4160b4 100644 --- a/src/pages/workspace/taxes/WorkspaceCreateTaxValuePage.tsx +++ b/src/pages/workspace/taxes/WorkspaceCreateTaxValuePage.tsx @@ -12,6 +12,7 @@ import useOnyx from '@hooks/useOnyx'; import useThemeStyles from '@hooks/useThemeStyles'; import {setDraftValues} from '@libs/actions/FormActions'; import Navigation from '@libs/Navigation/Navigation'; +import {skipNextFocusRestore} from '@libs/NavigationFocusReturn'; import type {PlatformStackScreenProps} from '@libs/Navigation/PlatformStackNavigation/types'; // eslint-disable-next-line no-restricted-imports -- The input ref doesn't exist at the navigate() call site, so we can't use Navigation's afterTransition callback import TransitionTracker from '@libs/Navigation/TransitionTracker'; @@ -41,6 +42,7 @@ function WorkspaceCreateTaxValuePage({ const save = () => { const normalizedValue = currentValue !== undefined ? String(Number(currentValue)) : currentValue; setDraftValues(ONYXKEYS.FORMS.WORKSPACE_NEW_TAX_FORM, {[INPUT_IDS.VALUE]: normalizedValue}); + skipNextFocusRestore(); goBack(); }; From d9759444e7070bdd39fccc288ea3918ba0e8cedb Mon Sep 17 00:00:00 2001 From: Nabi Date: Thu, 11 Jun 2026 10:35:24 +0430 Subject: [PATCH 2/2] format tax value page imports --- src/pages/workspace/taxes/WorkspaceCreateTaxValuePage.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/workspace/taxes/WorkspaceCreateTaxValuePage.tsx b/src/pages/workspace/taxes/WorkspaceCreateTaxValuePage.tsx index e4eddc4160b4..1952bff588f4 100644 --- a/src/pages/workspace/taxes/WorkspaceCreateTaxValuePage.tsx +++ b/src/pages/workspace/taxes/WorkspaceCreateTaxValuePage.tsx @@ -12,11 +12,11 @@ import useOnyx from '@hooks/useOnyx'; import useThemeStyles from '@hooks/useThemeStyles'; import {setDraftValues} from '@libs/actions/FormActions'; import Navigation from '@libs/Navigation/Navigation'; -import {skipNextFocusRestore} from '@libs/NavigationFocusReturn'; import type {PlatformStackScreenProps} from '@libs/Navigation/PlatformStackNavigation/types'; // eslint-disable-next-line no-restricted-imports -- The input ref doesn't exist at the navigate() call site, so we can't use Navigation's afterTransition callback import TransitionTracker from '@libs/Navigation/TransitionTracker'; import type {SettingsNavigatorParamList} from '@libs/Navigation/types'; +import {skipNextFocusRestore} from '@libs/NavigationFocusReturn'; import variables from '@styles/variables'; import CONST from '@src/CONST'; import ONYXKEYS from '@src/ONYXKEYS';