From c9a60a3a2eb6b63b48f0b950eee66f1cbac49c3d Mon Sep 17 00:00:00 2001 From: Madalena Campos Date: Wed, 12 Jul 2023 17:11:13 -0300 Subject: [PATCH] fix: function adjustments #734 --- projects/ion/src/lib/chip-group/chip-group.component.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/projects/ion/src/lib/chip-group/chip-group.component.ts b/projects/ion/src/lib/chip-group/chip-group.component.ts index 58f29f538..7ed1cf2a0 100644 --- a/projects/ion/src/lib/chip-group/chip-group.component.ts +++ b/projects/ion/src/lib/chip-group/chip-group.component.ts @@ -27,7 +27,9 @@ export class IonChipGroupComponent { @Output() dropdown? = new EventEmitter(); selectChip(chipSelected: ChipInGroup): void { - if (chipSelected.multiple && chipSelected.selected) { + const isChipSelectedOrMultiple = + chipSelected.multiple && chipSelected.selected; + if (isChipSelectedOrMultiple) { return; }