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

Disable option in SelectInput #2512

Closed
svrcekmichal opened this issue Nov 8, 2018 · 5 comments
Closed

Disable option in SelectInput #2512

svrcekmichal opened this issue Nov 8, 2018 · 5 comments

Comments

@svrcekmichal
Copy link

Is your feature request related to a problem? Please describe.
I've added list of user statuses into our admin page, and transition to few of them should be not possible, the problem is that it's not possible to mark option as disabled. This is supported in material ui, since MenuItem has prop disabled but SelectInput is not passing that prop down

Describe the solution you'd like

<SelectInput source="status" choices={[
  { id: "DISABLED", name: "disabled", disabled: true},
  { id: "ENABLED", name:"enabled"}
]}
@fzaninotto
Copy link
Member

Nice enhancement suggestion, and quite easy to add. Would you like to give it a try?

@mikaoelitiana
Copy link
Contributor

I can try this if it's still available.

@djhi
Copy link
Collaborator

djhi commented Nov 15, 2018

It is, please do :)

@mikaoelitiana
Copy link
Contributor

I created a PR, I hope it's clear.

@fzaninotto
Copy link
Member

Fixed by #2555

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

4 participants