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

MultiSelect: Internal input value is not updated #6895

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

Comments

@ivanpajon
Copy link
Contributor

Describe the bug

MultiSelect component has a hidden internal input to store value, but value is never set nor updated. If you are using it as a controlled input you may not notice it, but when you put it inside a form, the value selected is never sent through form data.

Reproducer

https://stackblitz.com/edit/vipv36?file=src%2FApp.tsx

PrimeReact version

10.7.0

React version

18.x

Language

TypeScript

Build / Runtime

Next.js

Browser(s)

No response

Steps to reproduce the behavior

  1. Go to reproducer
  2. Open dev console
  3. Select some items
  4. Click on Submit button

Expected behavior

Form data submitted should have the values selected.

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