Open ghost opened 4 years ago
When user hits Enter without selecting a value from suggestions, an error occurs. It should be either handled or validation should be added:
onEnter() { if (this.currentFocus !== -1) { this.selectedSuggestion = this.data[this.currentFocus]; this.inputValue.nativeElement.value = this.selectedSuggestion.value; ... } }
When user hits Enter without selecting a value from suggestions, an error occurs. It should be either handled or validation should be added: