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

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

Open
7 tasks
dman777 opened this issue May 17, 2017 · 1 comment
Open
7 tasks

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

dman777 opened this issue May 17, 2017 · 1 comment

Comments

@dman777
Copy link

dman777 commented May 17, 2017

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.

@esd100
Copy link

esd100 commented Jul 2, 2017

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.

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