iron-form icon indicating copy to clipboard operation
iron-form copied to clipboard

Reset breaks paper-radio buttons and paper-dropdown-menu

Open dman777 opened this issue 7 years ago • 1 comments

Description

reset breaks paper-radio buttons and paper-dropdown-menu

Expected outcome

Default selected values show as it does when form first loaded

Actual outcome

No default values are selected or show. Big issue in user experience when these selections should always have a value.

Browsers Affected

  • [x ] Chrome
  • [ ] Firefox
  • [ ] Safari 9
  • [ ] Safari 8
  • [ ] Safari 7
  • [ ] Edge
  • [ ] IE 11
  • [ ] IE 10

After a reset, the default selections will no longer show as they did when a form first loads.

I believe this issue may have to do with https://github.com/PolymerElements/iron-form/blob/master/iron-form.html#L453. The radio and dropdown selection elements are included in the loop and get a hosed with el.value = value;.

On a side note, great code base for iron-form.... very easy to read, clean, and easy to follow.

UPDATE: This issue also existed all the way back to 1.0.15. I stopped trying after this version.

dman777 avatar May 17 '17 04:05 dman777

Same issue here. Reset does not restore the original appearance.

Within my iron-form, I have several elements which are basically composed of paper-dropdown-menu, paper-listbox with templated paper-items. After selecting specific paper-items from the dropdown, the selected item populates the placeholder region of the input, as expected.

After submitting the form contents and executing reset(), none of the dropdown menu selected items which are displayed in the placeholder input region get erased, but rather they remain displayed.

esd100 avatar Jul 02 '17 02:07 esd100