Skip to content

Commit

Permalink
Merged in bugfix/NOJIRA-autocomplete-space-fix (pull request #54)
Browse files Browse the repository at this point in the history
Fixed issue with spacebar

Approved-by: Ryan Mathis <rmathis@unicon.net>
  • Loading branch information
rmathis committed Apr 9, 2018
2 parents 80ebf14 + 6c00f96 commit 0343c82
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 0343c82

Please sign in to comment.