Skip to content
New issue

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

bug: Ion-toggle submits form #6120

Closed
iignatov opened this issue Apr 11, 2016 · 1 comment
Closed

bug: Ion-toggle submits form #6120

iignatov opened this issue Apr 11, 2016 · 1 comment
Assignees
Milestone

Comments

@iignatov
Copy link
Contributor

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:

  1. Open the demo plunker environment.
  2. Switch the state of any of the toggles - form's submit() handled is called.
  3. Switch the state of any of the checkboxes or radio-elements - they don't submit the form (i.e. work as expected).

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)

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
@adamdbradley
Copy link
Contributor

Fixed in f17f517

Thanks!

@adamdbradley adamdbradley self-assigned this Apr 11, 2016
@adamdbradley adamdbradley added this to the 2.0.0-beta.5 milestone Apr 11, 2016
@ionitron-bot ionitron-bot bot locked and limited conversation to collaborators Sep 7, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants