mui / mui/material-ui

[select] Multiple select should support `FormData.getAll()`

Open
#48,678 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

breaking change has workaround scope: select v10.x
Dominant language
JavaScript
Stars
99.1k
Forks
32.5k
Avg merge
2d 17h
Merged PRs (30d)
106

Description

Steps to reproduce

Look at https://github.com/mui/material-ui/blob/master/packages/mui-material/src/Select/SelectInput.js#L869 observe that it puts a comma separated value into the native input value

Current behavior

comma separated value in FormData

Expected behavior

Either multiple values (multiple inputs) or else nothing at all (so we can do it ourselves)

Context

Submit a form built using MUI

Your environment

No response

Search keywords: textfield selectinput multiple

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start in packages/mui-material/src/Select/SelectInput.js at the referenced line and reproduce form submission with a multiple Select. Verify how the value is serialized into FormData, then make the result expose multiple values through getAll() or omit the native value as requested, and confirm the expected behavior with the relevant Select form handling.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, react
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
65/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.