Fixed selection using keyboard when stumbled upon option without value

This commit is contained in:
KoloMl 2024-08-31 23:36:07 +04:00
parent 7a6ca5b234
commit 0111ac5dfb

View file

@ -102,7 +102,7 @@ export class SuggestionsPopup {
direction > 0 ? this.selectedElement.nextElementSibling : this.selectedElement.previousElementSibling; direction > 0 ? this.selectedElement.nextElementSibling : this.selectedElement.previousElementSibling;
} }
if (!(nextTargetElement instanceof HTMLElement) || !nextTargetElement.dataset.value) { if (!(nextTargetElement instanceof HTMLElement)) {
this.clearSelection(); this.clearSelection();
return; return;
} }