From b75f1d3c2dca7910b3d668df30e865f24c70d36f Mon Sep 17 00:00:00 2001 From: LenAnderson Date: Thu, 18 Jul 2024 18:32:35 -0400 Subject: [PATCH] capture Tab key on non-selectable auto complete options --- public/scripts/autocomplete/AutoComplete.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/scripts/autocomplete/AutoComplete.js b/public/scripts/autocomplete/AutoComplete.js index 39ff0fae5..1526a9937 100644 --- a/public/scripts/autocomplete/AutoComplete.js +++ b/public/scripts/autocomplete/AutoComplete.js @@ -735,9 +735,9 @@ export class AutoComplete { case 'Tab': { // pick the selected item to autocomplete if (evt.ctrlKey || evt.altKey || evt.shiftKey || this.selectedItem.value == '') break; - if (!this.selectedItem.isSelectable) break; evt.preventDefault(); evt.stopImmediatePropagation(); + if (!this.selectedItem.isSelectable) break; this.select(); return; }