Skip to content

Commit 7cc5efa

Browse files
MKirovaMKirova
authored andcommitted
chore(*): Moving change event emitter for chip selected.
1 parent a47d3ea commit 7cc5efa

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

projects/igniteui-angular/src/lib/chips/chip.component.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,6 @@ export class IgxChipComponent extends DisplayDensityBase {
169169
@Input()
170170
public set selected(newValue: boolean) {
171171
this.changeSelection(newValue);
172-
this.selectedChange.emit(this._selected);
173172
}
174173

175174
@Output()
@@ -428,13 +427,15 @@ export class IgxChipComponent extends DisplayDensityBase {
428427
if (!onSelectArgs.cancel) {
429428
this.renderer.addClass(this.chipArea.nativeElement, this._selectedItemClass);
430429
this._selected = newValue;
430+
this.selectedChange.emit(this._selected);
431431
}
432432
} else if (!newValue && this._selected) {
433433
this.onSelection.emit(onSelectArgs);
434434

435435
if (!onSelectArgs.cancel) {
436436
this.renderer.removeClass(this.chipArea.nativeElement, this._selectedItemClass);
437437
this._selected = newValue;
438+
this.selectedChange.emit(this._selected);
438439
}
439440
}
440441
}

0 commit comments

Comments
 (0)