Skip to content

Commit

Permalink
fix: function adjustments #734
Browse files Browse the repository at this point in the history
  • Loading branch information
MadalenaCampos committed Jul 12, 2023
1 parent c9a60a3 commit 5de86f8
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion projects/ion/src/lib/chip-group/chip-group.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,12 @@ export class IonChipGroupComponent {
return;
}

chipSelected = this.setChip(chipSelected);

this.selected.emit(chipSelected);
}

setChip(chipSelected: ChipInGroup): ChipInGroup {
const isChipSelected = chipSelected.selected;

if (!this.multiple) {
Expand All @@ -49,7 +55,7 @@ export class IonChipGroupComponent {
this.checkRequired(chipSelected);
}

this.selected.emit(chipSelected);
return chipSelected;
}

checkRequired(chipSelected: ChipInGroup): void {
Expand Down

0 comments on commit 5de86f8

Please sign in to comment.