Skip to content

Commit

Permalink
feat: add required to chip-group #734
Browse files Browse the repository at this point in the history
  • Loading branch information
MadalenaCampos committed Jul 12, 2023
1 parent fce5878 commit 07edbb4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion projects/ion/src/lib/chip/chip.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,8 @@ export class ChipComponent implements OnInit, AfterViewInit, DoCheck {

select(): void {
this.toggleDropdown();
if (!this.options.length) {

if (this.options && this.options.length) {
this.selected = !this.selected;
}

Expand Down

0 comments on commit 07edbb4

Please sign in to comment.