File tree Expand file tree Collapse file tree 2 files changed +7
-5
lines changed Expand file tree Collapse file tree 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 {
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 */
Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments