-
-
Notifications
You must be signed in to change notification settings - Fork 5.3k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
feat: add disable options to SelectArrayInput #5940
feat: add disable options to SelectArrayInput #5940
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
examples/demo/src/segments/data.ts
Outdated
@@ -4,5 +4,9 @@ export default [ | |||
{ id: 'ordered_once', name: 'resources.segments.data.ordered_once' }, | |||
{ id: 'regular', name: 'resources.segments.data.regular' }, | |||
{ id: 'returns', name: 'resources.segments.data.returns' }, | |||
{ id: 'reviewer', name: 'resources.segments.data.reviewer' }, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please revert this change, and use the simple example to illustrate the functionality. Here, it makes the e-commerce demo worse for no reason.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@@ -17,6 +17,7 @@ const SegmentsInput: FC<Props> = ({ addField, ...rest }) => { | |||
choices={segments.map(segment => ({ | |||
id: segment.id, | |||
name: translate(segment.name), | |||
disabled: segment.disabled, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same, please revert
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
commit 8d8e3f7 Author: Paulo Viana <paulo9mv@yahoo.com.br> Date: Sat Feb 20 15:45:13 2021 -0400 feat: add documentation commit fce1306 Author: Paulo Viana <paulo9mv@yahoo.com.br> Date: Sat Feb 20 13:28:33 2021 -0400 feat: add disableValue prop to useChoices commit 0db4dba Author: Paulo Viana <paulo9mv@yahoo.com.br> Date: Sat Feb 20 11:21:00 2021 -0400 feat: add disabled selectArrayInput unit test commit 1c1f7a8 Author: Paulo Viana <paulo9mv@yahoo.com.br> Date: Fri Feb 19 08:33:51 2021 -0400 feat: remove optionDisable commit 03a88a8 Author: Paulo Viana <paulo9mv@yahoo.com.br> Date: Fri Feb 19 08:31:48 2021 -0400 feat: add disabled option to menuItem commit ab59e72 Author: Paulo Viana <paulo9mv@yahoo.com.br> Date: Thu Feb 18 23:31:31 2021 -0400 feat: add disabled choices to selectArrayInput
Co-authored-by: Gildas Garcia <1122076+djhi@users.noreply.github.com>
Co-authored-by: Gildas Garcia <1122076+djhi@users.noreply.github.com>
61f53f7
to
2d55102
Compare
Thanks! |
Add disabled options to
SelectArrayInput
as discussed in the issue #5759