diff --git a/src/components/select/select.vue b/src/components/select/select.vue index 013c1a53..6ca51b3d 100644 --- a/src/components/select/select.vue +++ b/src/components/select/select.vue @@ -494,7 +494,8 @@ this.navigateOptions(1); } // enter - if (e.key === 'Enter' && this.focusIndex > -1) { + if (e.key === 'Enter') { + if (this.focusIndex === -1) return this.hideMenu(); const optionComponent = this.flatOptions[this.focusIndex]; const option = this.getOptionData(optionComponent.componentOptions.propsData.value); this.onOptionClick(option);