mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-19 03:32:21 +08:00
fix(toggle): do not preventDefault
This commit is contained in:
@ -189,8 +189,6 @@ export class Switch extends Ion {
|
||||
* Toggle the checked state of this switch.
|
||||
*/
|
||||
toggle(ev) {
|
||||
ev.preventDefault();
|
||||
ev.stopPropagation();
|
||||
this.check(!this.checked);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user