Skip to content

Commit b3b4529

Browse files
fix(dropdown-list): only updateIndex if there's no index yet (#3139)
Co-authored-by: Akshat Patel <38994122+Akshat55@users.noreply.github.com>
1 parent a5b010f commit b3b4529

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/dropdown/list/dropdown-list.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -508,7 +508,7 @@ export class DropdownList implements AbstractDropdownView, AfterViewInit, OnDest
508508
const selected = this.getSelected();
509509
if (selected.length) {
510510
this.index = this.displayItems.indexOf(selected[0]);
511-
} else if (this.hasNextElement()) {
511+
} else if (this.index < 0 && this.hasNextElement()) {
512512
this.getNextElement();
513513
}
514514
}

0 commit comments

Comments
 (0)