Skip to content

Commit

Permalink
fix(md-chips): fix event propagation
Browse files Browse the repository at this point in the history
  • Loading branch information
Thanood committed Jan 29, 2017
1 parent b8d13be commit 115937e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/chip/chips.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,11 @@ export class MdChips {
onChipAdd(e, chip) {
this.data = $(this.element).material_chip('data');
fireEvent(this.element, 'change', { operation: 'add', target: chip, data });
fireEvent(this.element, 'change', { operation: 'add', target: chip, data: this.data });
}
onChipDelete(e, chip) {
this.data = $(this.element).material_chip('data');
fireEvent(this.element, 'change', { operation: 'delete', target: chip, data });
fireEvent(this.element, 'change', { operation: 'delete', target: chip, data: this.data });
}
onChipSelect(e, chip) {
fireEvent(this.element, 'selected', { target: chip });
Expand Down

0 comments on commit 115937e

Please sign in to comment.