Skip to content

Commit

Permalink
replaced key with value when filtering selectedOptions
Browse files Browse the repository at this point in the history
  • Loading branch information
tishoyanchev committed Jan 9, 2025
1 parent 2e1d79e commit aff0903
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/components/src/components/chip/chip.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ export class Chip {
this.selectedOptions = [...this.selectedOptions, eventDetail];
}
} else {
this.selectedOptions = this.selectedOptions.filter((option) => option.key !== eventDetail.key);
this.selectedOptions = this.selectedOptions.filter((option) => option.value !== eventDetail.value);
}
this.value = this.selectedOptions.map((option) => option.value);
}
Expand Down

0 comments on commit aff0903

Please sign in to comment.