capture Tab key on non-selectable auto complete options

This commit is contained in:
LenAnderson 2024-07-18 18:32:35 -04:00
parent 1412977083
commit b75f1d3c2d

View File

@ -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;
}