From 3d00d650afb36a5e25af42d41dfc22f7a4212664 Mon Sep 17 00:00:00 2001 From: Sibtain Ali Date: Sun, 21 Apr 2024 01:35:45 +0500 Subject: [PATCH] add comment on the new prop --- src/components/SelectionList/types.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/components/SelectionList/types.ts b/src/components/SelectionList/types.ts index b6995ef85fd0..50929095dc91 100644 --- a/src/components/SelectionList/types.ts +++ b/src/components/SelectionList/types.ts @@ -137,6 +137,7 @@ type ListItemProps = CommonListItemProps & { /** Whether the default focus should be prevented on row selection */ shouldPreventDefaultFocusOnSelectRow?: boolean; + /** Prevent the submission of the list item when enter key is pressed */ shouldPreventEnterKeySubmit?: boolean; /** Key used internally by React */