Skip to content
This repository has been archived by the owner on Dec 19, 2024. It is now read-only.

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 subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants