mui / mui/material-ui

[Select] Render Select component value holder as real native select

Open
#30,902 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

scope: select type: new feature
Dominant language
JavaScript
Stars
99.1k
Forks
32.5k
Avg merge
2d 17h
Merged PRs (30d)
106

Description

Duplicates
  • I have searched the existing issues
Latest version
  • I have tested the latest version
Summary 💡

Currently, the <Select> component uses an <input> as a value holder for all its value, for both simple and multiple/Chip list. Although the native property can be used currently, it does not match the expected MUI design.

The new system should keep the current design and having a hidden native <select> at the same time. A new attribute should be added to indicate that we want to use a select as value holder.

Another idea is to improve the current native property so it stills keep the design of MUI while still rendering a native select.

Examples 🌈
<Select
    select
>
..
</Select>
Motivation 🔦

With the current system, things get more even more complicated when we render a multiple select or a chip select and. When the whole FormData is submitted to the server, the input send a comma seperated ID 1,2,3,4 instead of a real array. Therefore rendering a real select match better the expectation of the developper.

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 by tracing the Select component's current input value holder and the existing native property. Compare the requested select value-holder behavior with the example and FormData motivation; done means the MUI-styled component can use a real native select while multiple values submit as an array rather than a comma-separated string.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, react
Domain
frontend
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.