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

Dropdown ignores optionValue #6822

Closed
sja-cslab opened this issue Jul 3, 2024 · 2 comments · Fixed by #6831, leoo1992/GeradorQRCode#80 or leoo1992/GeradorQRCode#85 · May be fixed by mtech-31-quemistry/quemistry_client_web#20
Closed
Assignees
Labels
Type: Bug Issue contains a defect related to a specific component.
Milestone

Comments

@sja-cslab
Copy link
Contributor

sja-cslab commented Jul 3, 2024

Describe the bug

After updating to PrimeReact 10.7, optionValue seems to be ignored. Using it or not no longer makes any difference it seems.

Reproducer

https://stackblitz.com/edit/tdd6cf?file=src%2FApp.jsx

PrimeReact version

10.7

React version

18.x

Language

ALL

Build / Runtime

Vite

Browser(s)

No response

Steps to reproduce the behavior

Go to Stackblitz - select state is initialized with "NY" which represents the code of one option.
That item isn't initial selected and onChange the whole Object gets returned.

Expected behavior

Not sure

@sja-cslab sja-cslab added the Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible label Jul 3, 2024
@sja-cslab
Copy link
Contributor Author

Maybe related to my old #6589 ticket!?

@melloware melloware added Type: Bug Issue contains a defect related to a specific component. and removed Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible labels Jul 3, 2024
Rekl0w added a commit to Rekl0w/primereact that referenced this issue Jul 4, 2024
@Rekl0w
Copy link
Contributor

Rekl0w commented Jul 4, 2024

PR submitted.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment