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

Ability to specify disabled items in SelectField #736

Closed
yurtsiv opened this issue May 29, 2020 · 1 comment · Fixed by #803
Closed

Ability to specify disabled items in SelectField #736

yurtsiv opened this issue May 29, 2020 · 1 comment · Fixed by #803
Assignees
Labels
Type: Feature New features and feature requests
Milestone

Comments

@yurtsiv
Copy link
Contributor

yurtsiv commented May 29, 2020

Currently, there's no way of disabling particular items in SelectField.

One should write a custom field in order to achieve something like this:

image

It would be nice to have such an ability by default.

f.e.

<SelectField
   name="selectField"
   disableItem={(item) => ...}
/>

or

<SelectField
   name="selectField"
   disableItems={["Item 2", "Item 4"]}
/>

Thanks!

@radekmie radekmie self-assigned this Jun 3, 2020
@radekmie radekmie added the Type: Feature New features and feature requests label Jun 3, 2020
@radekmie radekmie added this to the v3 milestone Jun 3, 2020
@radekmie
Copy link
Contributor

radekmie commented Jun 3, 2020

Hi @yurtsiv. I think we could add it but preferably in all themes. I've marked it as todo and we'll get to it after v3 release.

@radekmie radekmie modified the milestones: v3.0, v3.x Jun 6, 2020
@radekmie radekmie assigned kestarumper and unassigned radekmie Aug 19, 2020
@radekmie radekmie modified the milestones: v3.x, v3.0 Apr 22, 2022
@radekmie radekmie moved this to Closed in Open Source Nov 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Feature New features and feature requests
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

3 participants