Skip to content

Commit 1c4298e

Browse files
authored
Merge pull request #5731 from IgniteUI/vslavov/combo-remote-clear
fix(combo): properly clear selection when remote
2 parents 13ac9af + 6454233 commit 1c4298e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

projects/igniteui-angular/src/lib/combo/combo.component.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1549,6 +1549,9 @@ export class IgxComboComponent extends DisplayDensityBase implements IgxComboBas
15491549
this.registerRemoteEntries(addedItems);
15501550
this.registerRemoteEntries(removedItems, false);
15511551
value = Object.keys(this._remoteSelection).map(e => this._remoteSelection[e]).join(', ');
1552+
} else {
1553+
// If new selection is empty, clear all items
1554+
this.registerRemoteEntries(args.oldSelection, false);
15521555
}
15531556
} else {
15541557
value = this.displayKey !== null && this.displayKey !== undefined ?

0 commit comments

Comments
 (0)