Skip to content

Commit

Permalink
Fixed issue with spacebar
Browse files Browse the repository at this point in the history
  • Loading branch information
rmathis committed Apr 9, 2018
1 parent 18183bc commit 6c00f96
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ui/src/app/shared/autocomplete/autocomplete.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -285,9 +285,9 @@ export class AutoCompleteComponent implements OnInit, OnDestroy, OnChanges, Afte
}

handleSpace(event: KeyboardEvent): void {
event.preventDefault();
const focusIsOnOption = this.state.currentState.focused !== -1;
if (focusIsOnOption) {
event.preventDefault();
this.handleOptionClick(this.state.currentState.focused);
}
}
Expand Down

0 comments on commit 6c00f96

Please sign in to comment.