diff --git a/src/components/SelectionList/BaseListItem.tsx b/src/components/SelectionList/BaseListItem.tsx index b1c689b55afa..c9dc773c8818 100644 --- a/src/components/SelectionList/BaseListItem.tsx +++ b/src/components/SelectionList/BaseListItem.tsx @@ -18,7 +18,6 @@ function BaseListItem({ wrapperStyle, containerStyle, isDisabled = false, - shouldPreventDefaultFocusOnSelectRow = false, shouldPreventEnterKeySubmit = false, canSelectMultiple = false, onSelectRow, @@ -88,7 +87,7 @@ function BaseListItem({ hoverDimmingValue={1} hoverStyle={[!item.isDisabled && styles.hoveredComponentBG, hoverStyle]} dataSet={{[CONST.SELECTION_SCRAPER_HIDDEN_ELEMENT]: true}} - onMouseDown={shouldPreventDefaultFocusOnSelectRow ? (e) => e.preventDefault() : undefined} + onMouseDown={(e) => e.preventDefault()} id={keyForList ?? ''} style={pressableStyle} onFocus={onFocus} diff --git a/src/components/SelectionList/InviteMemberListItem.tsx b/src/components/SelectionList/InviteMemberListItem.tsx index 13b0014efb2d..2b3c01c04a69 100644 --- a/src/components/SelectionList/InviteMemberListItem.tsx +++ b/src/components/SelectionList/InviteMemberListItem.tsx @@ -24,7 +24,6 @@ function InviteMemberListItem({ onSelectRow, onCheckboxPress, onDismissError, - shouldPreventDefaultFocusOnSelectRow, rightHandSideComponent, onFocus, shouldSyncFocus, @@ -56,7 +55,6 @@ function InviteMemberListItem({ canSelectMultiple={canSelectMultiple} onSelectRow={onSelectRow} onDismissError={onDismissError} - shouldPreventDefaultFocusOnSelectRow={shouldPreventDefaultFocusOnSelectRow} rightHandSideComponent={rightHandSideComponent} errors={item.errors} pendingAction={item.pendingAction} diff --git a/src/components/SelectionList/RadioListItem.tsx b/src/components/SelectionList/RadioListItem.tsx index c7884690c067..48ca474f6c60 100644 --- a/src/components/SelectionList/RadioListItem.tsx +++ b/src/components/SelectionList/RadioListItem.tsx @@ -13,7 +13,6 @@ function RadioListItem({ isDisabled, onSelectRow, onDismissError, - shouldPreventDefaultFocusOnSelectRow, shouldPreventEnterKeySubmit, rightHandSideComponent, isMultilineSupported = false, @@ -34,7 +33,6 @@ function RadioListItem({ showTooltip={showTooltip} onSelectRow={onSelectRow} onDismissError={onDismissError} - shouldPreventDefaultFocusOnSelectRow={shouldPreventDefaultFocusOnSelectRow} shouldPreventEnterKeySubmit={shouldPreventEnterKeySubmit} rightHandSideComponent={rightHandSideComponent} keyForList={item.keyForList} diff --git a/src/components/SelectionList/Search/ReportListItem.tsx b/src/components/SelectionList/Search/ReportListItem.tsx index 9adff46395e6..2273b80e529d 100644 --- a/src/components/SelectionList/Search/ReportListItem.tsx +++ b/src/components/SelectionList/Search/ReportListItem.tsx @@ -68,7 +68,6 @@ function ReportListItem({ canSelectMultiple, onSelectRow, onDismissError, - shouldPreventDefaultFocusOnSelectRow, onFocus, shouldSyncFocus, }: ReportListItemProps) { @@ -119,7 +118,6 @@ function ReportListItem({ canSelectMultiple={canSelectMultiple} onSelectRow={() => openReportInRHP(transactionItem)} onDismissError={onDismissError} - shouldPreventDefaultFocusOnSelectRow={shouldPreventDefaultFocusOnSelectRow} onFocus={onFocus} shouldSyncFocus={shouldSyncFocus} /> @@ -138,7 +136,6 @@ function ReportListItem({ canSelectMultiple={canSelectMultiple} onSelectRow={onSelectRow} onDismissError={onDismissError} - shouldPreventDefaultFocusOnSelectRow={shouldPreventDefaultFocusOnSelectRow} errors={item.errors} pendingAction={item.pendingAction} keyForList={item.keyForList} diff --git a/src/components/SelectionList/Search/TransactionListItem.tsx b/src/components/SelectionList/Search/TransactionListItem.tsx index ecf9264301c2..23ab549dd495 100644 --- a/src/components/SelectionList/Search/TransactionListItem.tsx +++ b/src/components/SelectionList/Search/TransactionListItem.tsx @@ -13,7 +13,6 @@ function TransactionListItem({ canSelectMultiple, onSelectRow, onDismissError, - shouldPreventDefaultFocusOnSelectRow, onFocus, shouldSyncFocus, }: TransactionListItemProps) { @@ -42,7 +41,6 @@ function TransactionListItem({ canSelectMultiple={canSelectMultiple} onSelectRow={onSelectRow} onDismissError={onDismissError} - shouldPreventDefaultFocusOnSelectRow={shouldPreventDefaultFocusOnSelectRow} errors={item.errors} pendingAction={item.pendingAction} keyForList={item.keyForList} diff --git a/src/components/SelectionList/TableListItem.tsx b/src/components/SelectionList/TableListItem.tsx index d07d658f6b12..9fc138254f8b 100644 --- a/src/components/SelectionList/TableListItem.tsx +++ b/src/components/SelectionList/TableListItem.tsx @@ -21,7 +21,6 @@ function TableListItem({ onSelectRow, onCheckboxPress, onDismissError, - shouldPreventDefaultFocusOnSelectRow, rightHandSideComponent, onFocus, shouldSyncFocus, @@ -53,7 +52,6 @@ function TableListItem({ canSelectMultiple={canSelectMultiple} onSelectRow={onSelectRow} onDismissError={onDismissError} - shouldPreventDefaultFocusOnSelectRow={shouldPreventDefaultFocusOnSelectRow} rightHandSideComponent={rightHandSideComponent} errors={item.errors} pendingAction={item.pendingAction} diff --git a/src/components/SelectionList/UserListItem.tsx b/src/components/SelectionList/UserListItem.tsx index d07ac03c00f5..104990cf479c 100644 --- a/src/components/SelectionList/UserListItem.tsx +++ b/src/components/SelectionList/UserListItem.tsx @@ -25,7 +25,6 @@ function UserListItem({ onSelectRow, onCheckboxPress, onDismissError, - shouldPreventDefaultFocusOnSelectRow, shouldPreventEnterKeySubmit, rightHandSideComponent, onFocus, @@ -59,7 +58,6 @@ function UserListItem({ canSelectMultiple={canSelectMultiple} onSelectRow={onSelectRow} onDismissError={onDismissError} - shouldPreventDefaultFocusOnSelectRow={shouldPreventDefaultFocusOnSelectRow} shouldPreventEnterKeySubmit={shouldPreventEnterKeySubmit} rightHandSideComponent={rightHandSideComponent} errors={item.errors}