We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 599d449 commit 9643accCopy full SHA for 9643acc
src/lib/button-toggle/button-toggle.html
@@ -6,7 +6,7 @@
6
[attr.name]="name || null"
7
[attr.aria-label]="ariaLabel"
8
[attr.aria-labelledby]="ariaLabelledby"
9
- (click)="_onButtonClick($event)">
+ (click)="_onButtonClick()">
10
<div class="mat-button-toggle-label-content">
11
<ng-content></ng-content>
12
</div>
src/lib/button-toggle/button-toggle.ts
@@ -436,9 +436,7 @@ export class MatButtonToggle extends _MatButtonToggleMixinBase implements OnInit
436
}
437
438
/** Checks the button toggle due to an interaction with the underlying native button. */
439
- _onButtonClick(event: Event) {
440
- event.stopPropagation();
441
-
+ _onButtonClick() {
442
const newChecked = this._isSingleSelector ? true : !this._checked;
443
444
if (newChecked !== this._checked) {
0 commit comments