fix(a11y): only preventDefault for the onClick event (#22573)

This commit is contained in:
Brandy Carney
2020-11-25 16:56:51 -05:00
committed by GitHub
parent 5275332e43
commit 07868354aa
5 changed files with 12 additions and 14 deletions

View File

@ -163,7 +163,6 @@ export class Toggle implements ComponentInterface {
private onClick = (ev: Event) => {
ev.preventDefault();
ev.stopPropagation();
if (this.lastDrag + 300 < Date.now()) {
this.checked = !this.checked;