From 6301aa866ed761e54360267ad4e7f3badf031e16 Mon Sep 17 00:00:00 2001 From: krishna2323 Date: Sat, 17 May 2025 20:59:00 +0530 Subject: [PATCH 1/2] fix: Expense - Text selection mode is triggered when long tapping on expense in the expense report. Signed-off-by: krishna2323 --- .../MoneyRequestReportTransactionList.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/components/MoneyRequestReportView/MoneyRequestReportTransactionList.tsx b/src/components/MoneyRequestReportView/MoneyRequestReportTransactionList.tsx index 9bf9b1886cb0..52463e25e51a 100644 --- a/src/components/MoneyRequestReportView/MoneyRequestReportTransactionList.tsx +++ b/src/components/MoneyRequestReportView/MoneyRequestReportTransactionList.tsx @@ -236,7 +236,8 @@ function MoneyRequestReportTransactionList({report, transactions, reportActions, hoverDimmingValue={1} onMouseDown={(e) => e.preventDefault()} id={transaction.transactionID} - style={[pressableStyle]} + style={[pressableStyle, styles.userSelectNone]} + dataSet={{[CONST.SELECTION_SCRAPER_HIDDEN_ELEMENT]: true}} onMouseLeave={handleMouseLeave} onPressIn={() => canUseTouchScreen() && ControlSelection.block()} onPressOut={() => ControlSelection.unblock()} From 4eb258ad25b7dd6f5c995300f7a26eff3e6e5be7 Mon Sep 17 00:00:00 2001 From: krishna2323 Date: Mon, 26 May 2025 15:44:43 +0530 Subject: [PATCH 2/2] fix text selection on backdrop long press. Signed-off-by: krishna2323 --- src/components/Modal/BottomDockedModal/Backdrop/index.web.tsx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/components/Modal/BottomDockedModal/Backdrop/index.web.tsx b/src/components/Modal/BottomDockedModal/Backdrop/index.web.tsx index 0b9544555ac3..ac3e3032b594 100644 --- a/src/components/Modal/BottomDockedModal/Backdrop/index.web.tsx +++ b/src/components/Modal/BottomDockedModal/Backdrop/index.web.tsx @@ -59,6 +59,8 @@ function Backdrop({ accessible accessibilityLabel={translate('modal.backdropLabel')} onPress={onBackdropPress} + style={[styles.userSelectNone]} + dataSet={{[CONST.SELECTION_SCRAPER_HIDDEN_ELEMENT]: true}} > {isBackdropVisible && ( {!!customBackdrop && customBackdrop}