diff --git a/ios/Podfile.lock b/ios/Podfile.lock index b20798be1b90..9707de6fb2ae 100644 --- a/ios/Podfile.lock +++ b/ios/Podfile.lock @@ -3741,7 +3741,7 @@ PODS: - RNGoogleSignin (10.0.1): - GoogleSignIn (~> 7.0) - React-Core - - RNLiveMarkdown (0.1.333): + - RNLiveMarkdown (0.1.334): - boost - DoubleConversion - fast_float @@ -4887,7 +4887,7 @@ SPEC CHECKSUMS: GTMAppAuth: f69bd07d68cd3b766125f7e072c45d7340dea0de GTMSessionFetcher: 5aea5ba6bd522a239e236100971f10cb71b96ab6 GzipSwift: 893f3e48e597a1a4f62fafcb6514220fcf8287fa - hermes-engine: a042a38ee8fd790f69526e722127b3d187cfbc52 + hermes-engine: b9fce68308a7c2ec975e1717cb7fabe2dc9dd83e libavif: 84bbb62fb232c3018d6f1bab79beea87e35de7b7 libdav1d: 23581a4d8ec811ff171ed5e2e05cd27bad64c39f libwebp: 02b23773aedb6ff1fd38cec7a77b81414c6842a8 @@ -5006,7 +5006,7 @@ SPEC CHECKSUMS: RNFS: 89de7d7f4c0f6bafa05343c578f61118c8282ed8 RNGestureHandler: e580deecf0c372b61e073437ac37f62511265777 RNGoogleSignin: 89877c73f0fbf6af2038fbdb7b73b5a25b8330cc - RNLiveMarkdown: b6923a4b941161f6b8832c413f035564a6f4c46e + RNLiveMarkdown: 014c79e3eb3384ad574e4697460c41d997530478 RNLocalize: 05e367a873223683f0e268d0af9a8a8e6aed3b26 rnmapbox-maps: 8b7629ef3ae59dd96340470e568cbc7c08c54ff9 RNNitroSQLite: a9b5965d511ed6e99ce903380e64934d043a0d2c diff --git a/package-lock.json b/package-lock.json index 7ef833b39b0b..827767851637 100644 --- a/package-lock.json +++ b/package-lock.json @@ -21,7 +21,7 @@ "@expensify/nitro-utils": "file:./modules/ExpensifyNitroUtils", "@expensify/react-native-background-task": "file:./modules/background-task", "@expensify/react-native-hybrid-app": "file:./modules/hybrid-app", - "@expensify/react-native-live-markdown": "0.1.333", + "@expensify/react-native-live-markdown": "0.1.334", "@expensify/react-native-wallet": "0.1.22", "@expo/metro-config": "56.0.14", "@expo/metro-runtime": "56.0.13", @@ -5546,9 +5546,9 @@ "link": true }, "node_modules/@expensify/react-native-live-markdown": { - "version": "0.1.333", - "resolved": "https://registry.npmjs.org/@expensify/react-native-live-markdown/-/react-native-live-markdown-0.1.333.tgz", - "integrity": "sha512-S4z67bBeVolrvJ+Mg/026+v1PRYCjJks2vLfgcIdMf5dPFLAu0htf9KsH1so3CqLTEOWJxuBRHExAdOxUo6C+A==", + "version": "0.1.334", + "resolved": "https://registry.npmjs.org/@expensify/react-native-live-markdown/-/react-native-live-markdown-0.1.334.tgz", + "integrity": "sha512-ymousLqFN87xExVJkm17Wa8bw/Ra0PoV+2ng38wUPuK3WNJwToeiovYtGdxscIgqVrJ4SLxkdq10yMlHqP6Iiw==", "license": "MIT", "workspaces": [ "./example", diff --git a/package.json b/package.json index 0fc29fb9c961..661f1b038025 100644 --- a/package.json +++ b/package.json @@ -95,7 +95,7 @@ "@expensify/nitro-utils": "file:./modules/ExpensifyNitroUtils", "@expensify/react-native-background-task": "file:./modules/background-task", "@expensify/react-native-hybrid-app": "file:./modules/hybrid-app", - "@expensify/react-native-live-markdown": "0.1.333", + "@expensify/react-native-live-markdown": "0.1.334", "@expensify/react-native-wallet": "0.1.22", "@expo/metro-config": "56.0.14", "@expo/metro-runtime": "56.0.13", diff --git a/src/pages/iou/request/step/IOURequestStepDescription.tsx b/src/pages/iou/request/step/IOURequestStepDescription.tsx index 4bf9733adcfa..747032e67f5e 100644 --- a/src/pages/iou/request/step/IOURequestStepDescription.tsx +++ b/src/pages/iou/request/step/IOURequestStepDescription.tsx @@ -17,6 +17,7 @@ import useShowNotFoundPageInIOUStep from '@hooks/useShowNotFoundPageInIOUStep'; import useThemeStyles from '@hooks/useThemeStyles'; import {addErrorMessage} from '@libs/ErrorUtils'; +import focusComposerWithDelay from '@libs/focusComposerWithDelay'; import getNonEmptyStringOnyxID from '@libs/getNonEmptyStringOnyxID'; import {shouldUseTransactionDraft} from '@libs/IOUUtils'; import Parser from '@libs/Parser'; @@ -175,7 +176,7 @@ function IOURequestStepDescription({ useDiscardChangesConfirmation({ onCancel: () => { - inputRef.current?.focus(); + focusComposerWithDelay(inputRef.current)(true); }, getHasUnsavedChanges: () => { if (isSaved) { diff --git a/src/pages/iou/request/step/IOURequestStepMerchant.tsx b/src/pages/iou/request/step/IOURequestStepMerchant.tsx index a1721532a5f2..ea84d290c88f 100644 --- a/src/pages/iou/request/step/IOURequestStepMerchant.tsx +++ b/src/pages/iou/request/step/IOURequestStepMerchant.tsx @@ -17,6 +17,7 @@ import useRestartOnReceiptFailure from '@hooks/useRestartOnReceiptFailure'; import useShowNotFoundPageInIOUStep from '@hooks/useShowNotFoundPageInIOUStep'; import useThemeStyles from '@hooks/useThemeStyles'; +import focusComposerWithDelay from '@libs/focusComposerWithDelay'; import getNonEmptyStringOnyxID from '@libs/getNonEmptyStringOnyxID'; import {getTransactionDetails, isExpenseRequest, isPolicyExpenseChat} from '@libs/ReportUtils'; import {hasReceipt} from '@libs/TransactionUtils'; @@ -168,7 +169,7 @@ function IOURequestStepMerchant({ useDiscardChangesConfirmation({ onCancel: () => { - inputRef.current?.focus(); + focusComposerWithDelay(inputRef.current)(true); }, getHasUnsavedChanges: () => { if (isSaved) {