File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -47,6 +47,8 @@ function UnreportedExpenseListItem<TItem extends ListItem>({
4747
4848 useSyncFocus ( pressableRef , ! ! isFocused , shouldSyncFocus ) ;
4949
50+ const isItemDisabled = ! ! isDisabled && ! isSelected ;
51+
5052 return (
5153 < OfflineWithFeedback pendingAction = { item . pendingAction } >
5254 < PressableWithFeedback
@@ -55,7 +57,7 @@ function UnreportedExpenseListItem<TItem extends ListItem>({
5557 onSelectRow ( item ) ;
5658 setIsSelected ( ( val ) => ! val ) ;
5759 } }
58- disabled = { isDisabled && ! isSelected }
60+ disabled = { isItemDisabled }
5961 accessibilityLabel = { item . text ?? '' }
6062 role = { getButtonRole ( true ) }
6163 isNested
@@ -80,6 +82,7 @@ function UnreportedExpenseListItem<TItem extends ListItem>({
8082 onSelectRow ( item ) ;
8183 setIsSelected ( ( val ) => ! val ) ;
8284 } }
85+ isDisabled = { isItemDisabled }
8386 shouldShowCheckbox
8487 style = { styles . p3 }
8588 />
You can’t perform that action at this time.
0 commit comments