marmelab / marmelab/react-admin

`<AutocompleteInput>` should allow to override `renderInput`

Open
#10,430 7 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement TypeScript
Dominant language
TypeScript
Stars
26.9k
Forks
5.5k
Avg merge
2d 3h
Merged PRs (30d)
19

Description

The SelectInput component currently lacks support for grouping options, a feature that is available in the AutoCompleteInput component.

The challenge arises because the AutoCompleteInput component input must be a string, making it incompatible with rendering custom components, which the SelectInput component supports.

This limitation creates a gap in functionality:

If grouping is required, AutoCompleteInput must be used, but it sacrifices the flexibility of rendering custom components for displaying the selected option. Conversely, SelectInput can render custom components but does not support grouping.

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

Compare the AutoCompleteInput and SelectInput components, focusing on grouping options, custom component rendering, and the renderInput override named in the issue. Define the finished behavior as supporting grouped options without losing the ability to render custom selected options; the issue does not identify specific files or tests.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.