File tree 2 files changed +7
-5
lines changed
2 files changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -43,17 +43,19 @@ export class MatChipTrailingIcon extends MatChipAction {
43
43
}
44
44
45
45
/**
46
- * Directive to remove the parent chip when the trailing icon is clicked or
46
+ * Directive to edit the parent chip when the leading action icon is clicked or
47
47
* when the ENTER key is pressed on it.
48
48
*
49
- * Recommended for use with the Material Design "cancel " icon
50
- * available at https://material.io/icons/#ic_cancel .
49
+ * Recommended for use with the Material Design "edit " icon
50
+ * available at https://material.io/icons/#ic_edit .
51
51
*
52
52
* Example:
53
53
*
54
54
* ```
55
55
* <mat-chip>
56
- * <mat-icon matChipEdit>cancel</mat-icon>
56
+ * <button matChipEdit aria-label="Edit">
57
+ * <mat-icon>edit</mat-icon>
58
+ * </button>
57
59
* </mat-chip>
58
60
* ```
59
61
*/
Original file line number Diff line number Diff line change @@ -141,7 +141,7 @@ export class MatChipRow extends MatChip implements AfterViewInit {
141
141
}
142
142
}
143
143
144
- _handleDoubleclick ( event : Event ) {
144
+ _handleDoubleclick ( event : MouseEvent ) {
145
145
if ( ! this . disabled && this . editable ) {
146
146
this . _startEditing ( event ) ;
147
147
}
You can’t perform that action at this time.
0 commit comments