Skip to content

Commit

Permalink
Merge pull request #46177 from nyomanjyotisa/issue-45269
Browse files Browse the repository at this point in the history
allow press on enter on limit amount page
  • Loading branch information
srikarparsi authored Jul 29, 2024
2 parents 9de620a + 25ac902 commit 2ff7775
Show file tree
Hide file tree
Showing 9 changed files with 1 addition and 9 deletions.
2 changes: 1 addition & 1 deletion src/components/Form/FormWrapper.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ function FormWrapper({
shouldUseScrollView = true,
scrollContextEnabled = false,
shouldHideFixErrorsAlert = false,
disablePressOnEnter = true,
disablePressOnEnter = false,
isSubmitDisabled = false,
}: FormWrapperProps) {
const styles = useThemeStyles();
Expand Down
1 change: 0 additions & 1 deletion src/pages/workspace/WorkspaceNewRoomPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,6 @@ function WorkspaceNewRoomPage({policies, reports, formState, session, activePoli
validate={validate}
onSubmit={submit}
enabledWhenOffline
disablePressOnEnter={false}
>
<View style={styles.mb5}>
<InputWrapper
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,6 @@ function CreateDistanceRatePage({policy, route}: CreateDistanceRatePageProps) {
shouldHideFixErrorsAlert
submitFlexEnabled={false}
submitButtonStyles={[styles.mh5, styles.mt0]}
disablePressOnEnter={false}
>
<InputWrapperWithRef
InputComponent={AmountForm}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,6 @@ function PolicyDistanceRateEditPage({policy, route}: PolicyDistanceRateEditPageP
shouldHideFixErrorsAlert
submitFlexEnabled={false}
submitButtonStyles={[styles.mh5, styles.mt0]}
disablePressOnEnter={false}
>
<InputWrapperWithRef
InputComponent={AmountForm}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,6 @@ function PolicyDistanceRateTaxReclaimableEditPage({route, policy}: PolicyDistanc
shouldHideFixErrorsAlert
submitFlexEnabled={false}
submitButtonStyles={[styles.mh5, styles.mt0]}
disablePressOnEnter={false}
>
<InputWrapperWithRef
InputComponent={AmountForm}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,6 @@ function WorkspaceRatePage(props: WorkspaceRatePageProps) {
shouldHideFixErrorsAlert
submitFlexEnabled={false}
submitButtonStyles={[styles.mh5, styles.mt0]}
disablePressOnEnter={false}
>
<InputWrapperWithRef
InputComponent={AmountForm}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,6 @@ function CreateReportFieldsPage({
submitButtonText={translate('common.save')}
enabledWhenOffline
shouldValidateOnBlur={false}
disablePressOnEnter={false}
>
{({inputValues}) => (
<View style={styles.mhn5}>
Expand Down
1 change: 0 additions & 1 deletion src/pages/workspace/taxes/ValuePage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,6 @@ function ValuePage({
validate={validateTaxValue}
onSubmit={submit}
enabledWhenOffline
disablePressOnEnter={false}
shouldHideFixErrorsAlert
submitFlexEnabled={false}
submitButtonStyles={[styles.mh5, styles.mt0]}
Expand Down
1 change: 0 additions & 1 deletion src/pages/workspace/taxes/WorkspaceCreateTaxPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,6 @@ function WorkspaceCreateTaxPage({
submitButtonText={translate('common.save')}
enabledWhenOffline
shouldValidateOnBlur={false}
disablePressOnEnter={false}
>
<View style={styles.mhn5}>
<InputWrapper
Expand Down

0 comments on commit 2ff7775

Please sign in to comment.