Skip to content

Commit

Permalink
Fixed pressing enter not selecting item
Browse files Browse the repository at this point in the history
  • Loading branch information
SimplyBoo authored and timstableford committed Aug 13, 2021
1 parent 07fc169 commit c0bcbf9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/src/app/components/select/select.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ export class SelectComponent
} else if (event.key === 'Enter') {
if (this.highlightIndex !== undefined) {
const option = this.optionsInternal[this.highlightIndex];
option.setSelected(!option.selected);
option.onValueChange(!option.selected);
}
} else if (this.searchStrings) {
const searchString = (this.searchString || '') + event.key.toLowerCase();
Expand Down

0 comments on commit c0bcbf9

Please sign in to comment.