We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8327cbd commit 804ede4Copy full SHA for 804ede4
src/Select.jsx
@@ -210,6 +210,10 @@ class Select extends React.Component {
210
event.stopPropagation();
211
return;
212
}
213
+ } else if (keyCode === KeyCode.ENTER && state.open) {
214
+ // Aviod trigger form submit when select item
215
+ // https://github.com/ant-design/ant-design/issues/10861
216
+ event.preventDefault();
217
} else if (keyCode === KeyCode.ESC) {
218
if (state.open) {
219
this.setOpenState(false);
0 commit comments