Skip to content

Commit

Permalink
Merge pull request #751 from plocket/ajax_combobox
Browse files Browse the repository at this point in the history
Avoid re-appearance of ajax combobox dropdown on tab, enter, esc
  • Loading branch information
jhpyle authored Mar 6, 2024
2 parents b5efe4a + 47b58ce commit e47ec30
Showing 1 changed file with 12 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -617,6 +617,12 @@

case 9: // tab
case 13: // enter
if (e) {
e.stopPropagation();
e.preventDefault();
}
daFetchAjaxTimeoutFetchAfter = false;
daFetchAcceptIncoming = false;
if (!this.shown) {
return;
}
Expand All @@ -638,6 +644,12 @@
break;

case 27: // escape
if (e) {
e.stopPropagation();
e.preventDefault();
}
daFetchAjaxTimeoutFetchAfter = false;
daFetchAcceptIncoming = false;
if (!this.shown) {
return;
}
Expand Down

0 comments on commit e47ec30

Please sign in to comment.