Skip to content

Commit

Permalink
fix(material/chips): avoid double emit of changed event on blur
Browse files Browse the repository at this point in the history
Fixes that the chips listbox was emitting change events both when a chip is toggled and when the listbox is blurred.

Fixes angular#26942.
  • Loading branch information
crisbeto committed Apr 20, 2023
1 parent 298cbaf commit fafd7ec
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/material/chips/chip-listbox.ts
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,6 @@ export class MatChipListbox
// Wait to see if focus moves to an individual chip.
setTimeout(() => {
if (!this.focused) {
this._propagateChanges();
this._markAsTouched();
}
});
Expand Down

0 comments on commit fafd7ec

Please sign in to comment.