Skip to content
This repository has been archived by the owner on Oct 13, 2023. It is now read-only.

Commit

Permalink
fix input focus bug
Browse files Browse the repository at this point in the history
bug: unnecessary search reload when cacheSearchTerm  is false when KEY_DOWN event occurs leads to incorrect behavior
  • Loading branch information
crystalline authored Jun 25, 2017
1 parent a2a14ba commit b6960a4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/directives/ctr-input.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ export class CtrInput {
else if (event.keyCode === KEY_DW) {
event.preventDefault();

this.completer.search(this.searchStr);
if (!this.completer.opened) { this.completer.search(this.searchStr) }
}
else if (event.keyCode === KEY_ES) {
if (this.completer.isOpen) {
Expand Down

0 comments on commit b6960a4

Please sign in to comment.