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

Iron form serialize method always returning undefined on Polymer 2.0 #174

Closed
1 of 8 tasks
bmodeprogrammer opened this issue Mar 28, 2017 · 2 comments
Closed
1 of 8 tasks

Comments

@bmodeprogrammer
Copy link

bmodeprogrammer commented Mar 28, 2017

Description

When submit serialize method returns undefined, and the submit function it's called two times;

Expected outcome

{cenas: input}

Actual outcome

undefined

Live Demo

https://jsbin.com/micinalacu/1/edit?html,console,output

Browsers Affected

  • Chrome
  • Firefox
  • Safari 9
  • Safari 8
  • Safari 7
  • Edge
  • IE 11
  • IE 10

I did not test in another browser.
Stackoverflow question:
http://stackoverflow.com/questions/43075125/iron-form-with-polymer-2-0

@notwaldorf
Copy link
Contributor

There's no method called serialize on iron-form#2.0-preview right now; it's called serializeForm. There was a bug where Polymer had a serialize method, and that was stomping over the form's.

@bmodeprogrammer
Copy link
Author

bmodeprogrammer commented Mar 29, 2017

@notwaldorf yah, with the serializeForm works. But why it's called two times? and why I did not receive a run time error trying to execute a non defined method?
here: https://jsbin.com/cowocamimo/1/edit?html,console,output

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants