Skip to content

Commit ee30f39

Browse files
authored
chore: reopen select panel when pressing Enter again (#3989)
1 parent d92eb75 commit ee30f39

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

packages/components/select/hooks/useKeyboardControl.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,11 @@ export default function useKeyboardControl({
115115
handleKeyboardScroll(newIndex);
116116
break;
117117
case 'Enter': {
118+
if (!innerPopupVisible) {
119+
handlePopupVisibleChange(true, { e });
120+
break;
121+
}
122+
118123
if (hoverIndex === -1) return;
119124

120125
if (displayOptions[hoverIndex].checkAll) {

0 commit comments

Comments
 (0)