diff --git a/src/components/SelectionList/BaseSelectionList.tsx b/src/components/SelectionList/BaseSelectionList.tsx index d97c47c84ee7..f555bfc8bb61 100644 --- a/src/components/SelectionList/BaseSelectionList.tsx +++ b/src/components/SelectionList/BaseSelectionList.tsx @@ -43,7 +43,7 @@ function BaseSelectionList( onScrollBeginDrag, headerMessage = '', confirmButtonText = '', - onConfirm = () => {}, + onConfirm, headerContent, footerContent, showScrollIndicator = false, @@ -379,10 +379,10 @@ function BaseSelectionList( }); /** Calls confirm action when pressing CTRL (CMD) + Enter */ - useKeyboardShortcut(CONST.KEYBOARD_SHORTCUTS.CTRL_ENTER, onConfirm, { + useKeyboardShortcut(CONST.KEYBOARD_SHORTCUTS.CTRL_ENTER, onConfirm ?? selectFocusedOption, { captureOnInputs: true, shouldBubble: !flattenedSections.allOptions[focusedIndex], - isActive: !disableKeyboardShortcuts && !!onConfirm && isFocused, + isActive: !disableKeyboardShortcuts && isFocused, }); return (