Skip to content

Commit

Permalink
fix select dialog cannot be hidden when key press Enter
Browse files Browse the repository at this point in the history
  • Loading branch information
scotv committed Jul 18, 2015
1 parent 5b197dd commit a36f56d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/autocomplete.js
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ var AutoComplete = (function () {
} else if (first) {
attrClass(first, "active");
}
} else if (keyCode < 35 || keyCode > 40) {
} else if (keyCode != 13 && (keyCode < 35 || keyCode > 40)) {
if (inputValue && custParams.url) {
if (!dataAutocompleteOldValue || inputValue != dataAutocompleteOldValue) {
attrClass(result, "autocomplete open");
Expand Down

0 comments on commit a36f56d

Please sign in to comment.