Skip to content

Commit 541d05f

Browse files
committed
fix(material/chips): remove click handler when chip is not interactive
1 parent 8da079d commit 541d05f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/material/chips/chip-action.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ import {_StructuralStylesLoader} from '../core';
3434
'[attr.tabindex]': '_getTabindex()',
3535
'[attr.disabled]': '_getDisabledAttribute()',
3636
'[attr.aria-disabled]': 'disabled',
37-
'(click)': '_handleClick($event)',
37+
'(click)': 'isInteractive ? _handleClick($event) : null',
3838
'(keydown)': '_handleKeydown($event)',
3939
},
4040
})

src/material/chips/chip-row.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ export interface MatChipEditedEvent extends MatChipEvent {
6161
'[attr.aria-description]': 'null',
6262
'[attr.role]': 'role',
6363
'(focus)': '_handleFocus()',
64-
'(click)': '_handleClick($event)',
64+
'(click)': 'this._hasInteractiveActions() ? _handleClick($event) : null',
6565
'(dblclick)': '_handleDoubleclick($event)',
6666
},
6767
providers: [

0 commit comments

Comments
 (0)