PolymerElements / paper-dropdown-menu

A Material Design browser select element
https://www.webcomponents.org/element/PolymerElements/paper-dropdown-menu
61 stars 107 forks source link

Not possible to use in a webform #139

Closed 34code closed 8 years ago

34code commented 8 years ago

Description

paper-dropdown-menu cannot be used in a web form even if it is an iron-form. The "value" of the paper-items are not exposed to the form.

Expected outcome

paper-dropdown-menu should be able to replace select fields in forms

Actual outcome

Unable to POST selected value in paper dropdown menu back to the server

Live Demo

N/A

Steps to reproduce

  1. Put a paper-dropdown-menu element in the page within a form.
  2. Open the page in a web browser.
  3. Select an item within paper-dropdown-menu
  4. Submit the form

    Browsers Affected

valdrinkoshi commented 8 years ago

It requires your form to be an iron-form, and it will work as expected http://jsbin.com/boyege/1/edit?html,console,output (I've logged also the form.serialize() but that's not necessary)

screen shot 2016-07-01 at 12 23 09 am

Closing this, let me know if the problem persists (a jsbin would be helpful), and I'll reopen this ;)