We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When a <ion-toggle> is placed inside a <form> the form gets submitted when switching the state of the toggle.
<ion-toggle>
<form>
It should be possible to switch the state of the toggle without the form gets submitted.
Steps to reproduce:
submit()
Other information: (e.g. stacktraces, related issues, suggestions how to fix, stackoverflow links, forum links, etc)
https://forum.ionicframework.com/t/ion-toggle-submits-form/49002
Which Ionic Version? 2.x
http://plnkr.co/edit/xOaUceJochQo1IdnC5IQ?p=preview
Run ionic info from terminal/cmd prompt: (paste output below)
ionic info
Your system information: Cordova CLI: 6.1.1 Gulp version: CLI version 1.2.1 Gulp local: Local version 3.9.1 Ionic Framework Version: 2.0.0-beta.4 Ionic CLI Version: 2.0.0-beta.24 Ionic App Lib Version: 2.0.0-beta.14 OS: Windows 8.1 Node Version: v5.8.0
The text was updated successfully, but these errors were encountered:
Fixed in f17f517
Thanks!
Sorry, something went wrong.
adamdbradley
No branches or pull requests
Short description of the problem:
When a
<ion-toggle>
is placed inside a<form>
the form gets submitted when switching the state of the toggle.What behavior are you expecting?
It should be possible to switch the state of the toggle without the form gets submitted.
Steps to reproduce:
submit()
handled is called.Other information: (e.g. stacktraces, related issues, suggestions how to fix, stackoverflow links, forum links, etc)
https://forum.ionicframework.com/t/ion-toggle-submits-form/49002
Which Ionic Version? 2.x
Plunker that shows an example of your issue
http://plnkr.co/edit/xOaUceJochQo1IdnC5IQ?p=preview
Run
ionic info
from terminal/cmd prompt: (paste output below)The text was updated successfully, but these errors were encountered: