Skip to content

Commit df3a2e6

Browse files
committed
fixup! refactor(material/chips): set generic for the MAT_CHIP token
1 parent 7ce623c commit df3a2e6

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

goldens/material/chips/index.api.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ import { QueryList } from '@angular/core';
3131
import { Subject } from 'rxjs';
3232

3333
// @public
34-
export const MAT_CHIP: InjectionToken<unknown>;
34+
export const MAT_CHIP: InjectionToken<MatChip>;
3535

3636
// @public
3737
export const MAT_CHIP_AVATAR: InjectionToken<unknown>;

src/material/chips/chip-icons.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,15 +73,15 @@ export class MatChipEdit extends MatChipAction {
7373
if (!this.disabled) {
7474
event.stopPropagation();
7575
event.preventDefault();
76-
this._parentChip._edit();
76+
this._parentChip._edit(event);
7777
}
7878
}
7979

8080
override _handleKeydown(event: KeyboardEvent) {
8181
if ((event.keyCode === ENTER || event.keyCode === SPACE) && !this.disabled) {
8282
event.stopPropagation();
8383
event.preventDefault();
84-
this._parentChip._edit();
84+
this._parentChip._edit(event);
8585
}
8686
}
8787
}

0 commit comments

Comments
 (0)