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

bug(platform): select component uses label as a value #7442

Closed
N1XUS opened this issue Dec 27, 2021 · 0 comments · Fixed by #7504
Closed

bug(platform): select component uses label as a value #7442

N1XUS opened this issue Dec 27, 2021 · 0 comments · Fixed by #7504
Labels
bug Something isn't working platform platform

Comments

@N1XUS
Copy link
Contributor

N1XUS commented Dec 27, 2021

Is this a bug, enhancement, or feature request?

bug

Briefly describe your proposal.

Currently, select component of the platform uses label property as a value of the control, which is wrong because OptionItem provides ability to define value separately from label. This can cause confusion on the usage of the component and misconfiguration of the default value of the control.

Which versions of Angular and Fundamental Library for Angular are affected? (If this is a feature request, use current version.)

current

If this is a bug, please provide steps for reproducing it.

  1. Go to https://fundamental-ngx.netlify.app/#/platform/select#reactive-form
  2. Select some option from the select dropdown list

ER: Selected item should be equal to the value property of the option object
AR: Selected item is equal to the label property of the option object

@N1XUS N1XUS added bug Something isn't working platform platform labels Dec 27, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working platform platform
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant