Skip to content

Commit 5a782e6

Browse files
committed
fixes
1 parent ae32744 commit 5a782e6

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

src/material/chips/chip-icons.ts

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,17 +43,19 @@ export class MatChipTrailingIcon extends MatChipAction {
4343
}
4444

4545
/**
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
4747
* when the ENTER key is pressed on it.
4848
*
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.
5151
*
5252
* Example:
5353
*
5454
* ```
5555
* <mat-chip>
56-
* <mat-icon matChipEdit>cancel</mat-icon>
56+
* <button matChipEdit aria-label="Edit">
57+
* <mat-icon>edit</mat-icon>
58+
* </button>
5759
* </mat-chip>
5860
* ```
5961
*/

src/material/chips/chip-row.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ export class MatChipRow extends MatChip implements AfterViewInit {
141141
}
142142
}
143143

144-
_handleDoubleclick(event: Event) {
144+
_handleDoubleclick(event: MouseEvent) {
145145
if (!this.disabled && this.editable) {
146146
this._startEditing(event);
147147
}

0 commit comments

Comments
 (0)