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

paper-dropdown-menu / paper-listbox : send label instead the value in the request #274

Open
5 tasks
PPCM opened this issue Jan 16, 2018 · 1 comment
Open
5 tasks

Comments

@PPCM
Copy link

PPCM commented Jan 16, 2018

I have paper-listbox element in a paper-dropdown-menu, values of items are different from labels.
Here is the example

<paper-dropdown-menu label="Gender" name="gender" required error-message="Gender is required">
   <paper-listbox slot="dropdown-content" attr-or-property-name="value">
      <paper-item value="M">Male</paper-item>
      <paper-item value="F">Female</paper-item>
   </paper-listbox>
</paper-dropdown-menu>

But in the post, the label is given instead of the value of the item

Any idea to have gender=M or gender=F in the request?

Actual outcome

Actually the output request contains gender=Male or gender=Female

Browsers Affected

  • [X ] Chrome
  • [X ] Firefox
  • Safari 9
  • Safari 8
  • Safari 7
  • [X ] Edge
  • IE 11
  • IE 10
@jakebeatty
Copy link

change attr-or-property-name to attr-for-selected

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