mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-18 19:21:34 +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 the checked state of this switch.
|
||||||
*/
|
*/
|
||||||
toggle(ev) {
|
toggle(ev) {
|
||||||
ev.preventDefault();
|
|
||||||
ev.stopPropagation();
|
|
||||||
this.check(!this.checked);
|
this.check(!this.checked);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user