From 24fa10c6c6dd919072c0c4325b31710f900ac8b6 Mon Sep 17 00:00:00 2001 From: Vit Horacek <36083550+mountiny@users.noreply.github.com> Date: Fri, 31 Jul 2026 14:44:21 +0200 Subject: [PATCH] Revert "Fix markdown cursor restore crash on IOU description focus" --- ios/Podfile.lock | 6 +++--- package-lock.json | 8 ++++---- package.json | 2 +- src/pages/iou/request/step/IOURequestStepDescription.tsx | 3 +-- src/pages/iou/request/step/IOURequestStepMerchant.tsx | 3 +-- 5 files changed, 10 insertions(+), 12 deletions(-) diff --git a/ios/Podfile.lock b/ios/Podfile.lock index 9707de6fb2ae..b20798be1b90 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.334): + - RNLiveMarkdown (0.1.333): - boost - DoubleConversion - fast_float @@ -4887,7 +4887,7 @@ SPEC CHECKSUMS: GTMAppAuth: f69bd07d68cd3b766125f7e072c45d7340dea0de GTMSessionFetcher: 5aea5ba6bd522a239e236100971f10cb71b96ab6 GzipSwift: 893f3e48e597a1a4f62fafcb6514220fcf8287fa - hermes-engine: b9fce68308a7c2ec975e1717cb7fabe2dc9dd83e + hermes-engine: a042a38ee8fd790f69526e722127b3d187cfbc52 libavif: 84bbb62fb232c3018d6f1bab79beea87e35de7b7 libdav1d: 23581a4d8ec811ff171ed5e2e05cd27bad64c39f libwebp: 02b23773aedb6ff1fd38cec7a77b81414c6842a8 @@ -5006,7 +5006,7 @@ SPEC CHECKSUMS: RNFS: 89de7d7f4c0f6bafa05343c578f61118c8282ed8 RNGestureHandler: e580deecf0c372b61e073437ac37f62511265777 RNGoogleSignin: 89877c73f0fbf6af2038fbdb7b73b5a25b8330cc - RNLiveMarkdown: 014c79e3eb3384ad574e4697460c41d997530478 + RNLiveMarkdown: b6923a4b941161f6b8832c413f035564a6f4c46e RNLocalize: 05e367a873223683f0e268d0af9a8a8e6aed3b26 rnmapbox-maps: 8b7629ef3ae59dd96340470e568cbc7c08c54ff9 RNNitroSQLite: a9b5965d511ed6e99ce903380e64934d043a0d2c diff --git a/package-lock.json b/package-lock.json index 86a92e32f83b..0ba95a80fc3e 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.334", + "@expensify/react-native-live-markdown": "0.1.333", "@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.334", - "resolved": "https://registry.npmjs.org/@expensify/react-native-live-markdown/-/react-native-live-markdown-0.1.334.tgz", - "integrity": "sha512-ymousLqFN87xExVJkm17Wa8bw/Ra0PoV+2ng38wUPuK3WNJwToeiovYtGdxscIgqVrJ4SLxkdq10yMlHqP6Iiw==", + "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==", "license": "MIT", "workspaces": [ "./example", diff --git a/package.json b/package.json index 6206711a8a21..b549ab2c6bac 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.334", + "@expensify/react-native-live-markdown": "0.1.333", "@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 747032e67f5e..4bf9733adcfa 100644 --- a/src/pages/iou/request/step/IOURequestStepDescription.tsx +++ b/src/pages/iou/request/step/IOURequestStepDescription.tsx @@ -17,7 +17,6 @@ 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'; @@ -176,7 +175,7 @@ function IOURequestStepDescription({ useDiscardChangesConfirmation({ onCancel: () => { - focusComposerWithDelay(inputRef.current)(true); + inputRef.current?.focus(); }, getHasUnsavedChanges: () => { if (isSaved) { diff --git a/src/pages/iou/request/step/IOURequestStepMerchant.tsx b/src/pages/iou/request/step/IOURequestStepMerchant.tsx index ea84d290c88f..a1721532a5f2 100644 --- a/src/pages/iou/request/step/IOURequestStepMerchant.tsx +++ b/src/pages/iou/request/step/IOURequestStepMerchant.tsx @@ -17,7 +17,6 @@ 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'; @@ -169,7 +168,7 @@ function IOURequestStepMerchant({ useDiscardChangesConfirmation({ onCancel: () => { - focusComposerWithDelay(inputRef.current)(true); + inputRef.current?.focus(); }, getHasUnsavedChanges: () => { if (isSaved) {