Skip to content

Commit

Permalink
add comment on the new prop
Browse files Browse the repository at this point in the history
  • Loading branch information
allroundexperts committed Apr 20, 2024
1 parent 3d00d65 commit 77d5f82
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/components/SelectionList/BaseSelectionList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -352,6 +352,7 @@ function BaseSelectionList<TItem extends ListItem>(
onCheckboxPress={onCheckboxPress ? () => onCheckboxPress?.(item) : undefined}
onDismissError={() => onDismissError?.(item)}
shouldPreventDefaultFocusOnSelectRow={shouldPreventDefaultFocusOnSelectRow}
// We're already handling the Enter key press in the useKeyboardShortcut hook, so we don't want the list item to submit the form
shouldPreventEnterKeySubmit
rightHandSideComponent={rightHandSideComponent}
keyForList={item.keyForList ?? ''}
Expand Down

0 comments on commit 77d5f82

Please sign in to comment.