mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-18 11:17:19 +08:00
fix(a11y): only preventDefault for the onClick event (#22573)
This commit is contained in:
@ -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;
|
||||
|
Reference in New Issue
Block a user