Skip to content

Commit 239ac5e

Browse files
committed
fix:65746: removed swipe for perDiem page on mobile
1 parent 750ebb0 commit 239ac5e

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

src/pages/iou/request/IOURequestStartPage.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ import IOURequestStepDistance from './step/IOURequestStepDistance';
3636
import IOURequestStepPerDiemWorkspace from './step/IOURequestStepPerDiemWorkspace';
3737
import IOURequestStepScan from './step/IOURequestStepScan';
3838
import type {WithWritableReportOrNotFoundProps} from './step/withWritableReportOrNotFound';
39+
import { isMobile } from '@libs/Browser';
3940

4041
type IOURequestStartPageProps = WithWritableReportOrNotFoundProps<typeof SCREENS.MONEY_REQUEST.CREATE> & {
4142
defaultSelectedTab: SelectedTabRequest;
@@ -209,7 +210,8 @@ function IOURequestStartPage({
209210
shouldShowProductTrainingTooltip={shouldShowProductTrainingTooltip}
210211
renderProductTrainingTooltip={renderProductTrainingTooltip}
211212
lazyLoadEnabled
212-
disableSwipe={isMultiScanEnabled && selectedTab === CONST.TAB_REQUEST.SCAN}
213+
// We're disabling swipe on mWeb fo the Per Diem tab because the keyboard will hang on the other tab after switching
214+
disableSwipe={(isMultiScanEnabled && selectedTab === CONST.TAB_REQUEST.SCAN) || (selectedTab === CONST.TAB_REQUEST.PER_DIEM && isMobile())}
213215
>
214216
<TopTab.Screen name={CONST.TAB_REQUEST.MANUAL}>
215217
{() => (

src/pages/iou/request/step/IOURequestStepDestination.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ function IOURequestStepDestination({
118118
<ScreenWrapper
119119
includePaddingTop={false}
120120
keyboardVerticalOffset={variables.contentHeaderHeight + top + variables.tabSelectorButtonHeight + variables.tabSelectorButtonPadding}
121-
testID={`${IOURequestStepDestination.displayName} Wrap`}
121+
testID={`${IOURequestStepDestination.displayName}-container`}
122122
>
123123
<StepScreenWrapper
124124
headerTitle={backTo ? translate('common.destination') : tabTitles[iouType]}

0 commit comments

Comments
 (0)