marmelab / marmelab/react-admin

Add emptyText property to SelectArrayInput

Open Beginner friendly
#10,454 7 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

It would be nice to allow to specify what should be rendered inside a `SelectArrayInput` when no choice is selected. This feature is already present in the `SelectInput`.

For example:
```
const channelChoices = [
{id: "email", name: "Email"},
{id: "push", name: "Push Notification"},
];
All Channels} />
```

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 locating the SelectArrayInput implementation and compare it with SelectInput, where emptyText already exists. Trace how the empty selection is rendered, then add equivalent support for the provided emptyText value and verify that SelectArrayInput displays it when no choice is selected.

Written by the indexing model from the issue text.

Assessment

Tech stack
react, typescript
Domain
frontend
Issue type
Feature
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
72/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.