You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
iron-form doesn't serializepaper-radio-group correctly, since the default value to attrForSelected is name and to paper-radio-group says that you need to change this attribute for all its children.
Why?
The function serialize uses name attribute as its key. But paper-radio-group's children must have the same key for all its children. If not, which would be the point to use them in group?
Unfortunately, it's necessary repeating name attribute in the elements of same group.
The text was updated successfully, but these errors were encountered:
zaclummys
changed the title
The default value of "attrForSelected" in "paper-radio-group" cause trouble "serialize" in "iron-form"
The default value of "attrForSelected" in "paper-radio-group" causes trouble "serialize" in "iron-form"
Mar 30, 2016
zaclummys
changed the title
The default value of "attrForSelected" in "paper-radio-group" causes trouble "serialize" in "iron-form"
The default value of "attrForSelected" in "paper-radio-group" causes troubles in "serialize" in "iron-form"
Mar 30, 2016
zaclummys
changed the title
The default value of "attrForSelected" in "paper-radio-group" causes troubles in "serialize" in "iron-form"
The default value of "attrForSelected" in "paper-radio-group" causes troubles in iron-form.serialize()
Mar 30, 2016
Description
iron-form doesn't serialize paper-radio-group correctly, since the default value to attrForSelected is name and to paper-radio-group says that you need to change this attribute for all its children.
Why?
The function serialize uses name attribute as its key. But paper-radio-group's children must have the same key for all its children. If not, which would be the point to use them in group?
How it'd be
Changing
attrForSelected: { type: String, value: 'name' }
toattrForSelected: { type: String, value: 'value' }
, then serialize won't return{"letter-a": "on"}
, it'll{"letter": "letter-a"}
Example
Unfortunately, it's necessary repeating name attribute in the elements of same group.
The text was updated successfully, but these errors were encountered: