Removed the check for direction and elements count for private method

This commit is contained in:
KoloMl 2024-08-31 23:56:44 +04:00
parent 0111ac5dfb
commit 098ec6c6db

View file

@ -89,10 +89,6 @@ export class SuggestionsPopup {
}
private changeSelection(direction: number) {
if (this.listElement.childElementCount === 0 || direction === 0) {
return;
}
let nextTargetElement: Element | null;
if (!this.selectedElement) {