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

serializeForm duplicates values when element inside iron-selector #221

Open
1 of 8 tasks
LordOfTheRams opened this issue Dec 6, 2017 · 1 comment
Open
1 of 8 tasks

Comments

@LordOfTheRams
Copy link

Description

When using iron-forms and putting paper-checkboxes inside a iron-selector and then serializing the form the selected values get duplicated. Without the iron-selector it works fine. I think this is a serialzation issue.

<iron-selector attr-for-selected="value" selected-attribute="checked"  multi>
   <paper-checkbox name="category" value="Arts" >Arts</paper-checkbox>
   <paper-checkbox name="category" value="Design">Design</paper-checkbox>
</iron-selector>

Expected outcome

When selecting 'Arts':

{"category":["Arts"]}

Actual outcome

{"category":["Arts","Arts"]}

Steps to reproduce

Put paper-checkbox inside iron-selector and call serializeForm()

Browsers Affected

  • Chrome
  • Firefox
  • Safari 9
  • Safari 8
  • Safari 7
  • Edge
  • IE 11
  • IE 10
@ianjosephwilson
Copy link

I think this is the same bug as #216

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