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

Add emptyText property to SelectArrayInput #10454

Open
MichaelTamm opened this issue Jan 20, 2025 · 3 comments
Open

Add emptyText property to SelectArrayInput #10454

MichaelTamm opened this issue Jan 20, 2025 · 3 comments

Comments

@MichaelTamm
Copy link

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"},
];
<SelectArrayInput source="channels" choices={channelChoices} emptyText={<i>All Channels</i>} />
@djhi
Copy link
Collaborator

djhi commented Jan 20, 2025

Indeed! Can you open a PR?

@Tomas025
Copy link

Hello, I'm a software engineering student I wanted to make my first contribution to an open source repository, can I act on this issue?

@djhi
Copy link
Collaborator

djhi commented Jan 20, 2025

Hi @Tomas025, of course! Be aware that you'll need to:

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

No branches or pull requests

3 participants