Skip to content

Commit

Permalink
Fixed #10734 - multiselect applies disabled UI state to all items whe…
Browse files Browse the repository at this point in the history
…n selectionLimit is reached and chip is removed
  • Loading branch information
yigitfindikli committed Oct 13, 2021
1 parent 33acc39 commit fe081ba
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/app/components/multiselect/multiselect.ts
Original file line number Diff line number Diff line change
Expand Up @@ -774,6 +774,7 @@ export class MultiSelect implements OnInit,AfterViewInit,AfterContentInit,AfterV
removeChip(chip: any, event: MouseEvent) {
this.value = this.value.filter(val => !ObjectUtils.equals(val, chip, this.dataKey));
this.onModelChange(this.value);
this.checkSelectionLimit();
this.onChange.emit({ originalEvent: event, value: this.value });
this.updateLabel();
this.updateFilledState();
Expand Down

0 comments on commit fe081ba

Please sign in to comment.