Skip to content

Commit 9c955ee

Browse files
committed
fix test
1 parent e57ab4e commit 9c955ee

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -445,6 +445,10 @@ export class DropdownList implements AbstractDropdownView, AfterViewInit, OnDest
445445
console.error(`${this.constructor.name}.propagateSelected expects an Array<ListItem>, got ${JSON.stringify(value)}`);
446446
}
447447
this.onItemsReady(() => {
448+
if (this.getListItems().length === 0) {
449+
return;
450+
}
451+
448452
const selectedNewItems = [];
449453
for (let newItem of value) {
450454
if (newItem.selected) {

0 commit comments

Comments
 (0)