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
{{ message }}
This repository has been archived by the owner on Dec 19, 2024. It is now read-only.
The root element appears to be both either the light dom or the shadow root. The iron-labels have this property so when I wrap an input it gets loaded twice, I think it is in the light dom in iron-label, so it is a child of the form element and then picked up again as the child of the label element, creating double entries in values.
Here you can see the root property in polymer source is doc'ed as HTMLElement or ShadowRoot.
I don't think it should be traversing shadow at all. There is some brief discussion in the other issue about this, but I think it could do with more input.
Thinking more about it... if or if not the shadowdom should be traversed I think is out of the scope of this issue other than changing that line to find any inputs that wouldn't be found otherwise. The original intention was to just get any inputs not collected already not to collect them twice I think this is just a bug.
Description
The
iron-form
element serializes two values in an array when wrapped an input withiron-label
.Expected outcome
Only 1 String value should be in the serialization for the input's name.
Actual outcome
An array of 2 Strings is in the serialization for the input's name.
Live Demo
https://jsbin.com/kohumos/edit?html,output
Steps to reproduce
Browsers Affected
The text was updated successfully, but these errors were encountered: