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

feat: add disable options to SelectArrayInput #5940

Merged
merged 5 commits into from Feb 26, 2021

Conversation

paulo9mv
Copy link
Contributor

Add disabled options to SelectArrayInput as discussed in the issue #5759

Copy link
Contributor

@djhi djhi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

docs/Inputs.md Outdated Show resolved Hide resolved
docs/Inputs.md Outdated Show resolved Hide resolved
@djhi djhi added this to the 3.13 milestone Feb 22, 2021
@@ -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' },
Copy link
Member

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.

Copy link
Contributor Author

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,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same, please revert

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@fzaninotto fzaninotto removed this from the 3.13 milestone Feb 24, 2021
@WiXSL
Copy link
Contributor

WiXSL commented Feb 24, 2021

@paulo9mv,
I rebased my PR (#5941) and no longer got this e2e failing navigation test.
Maybe is a flaky test

@paulo9mv
Copy link
Contributor Author

@paulo9mv,
I rebased my PR (#5941) and no longer got this e2e failing navigation test.
Maybe is a flaky test

thanks @WiXSL , i will try it now

paulo9mv and others added 5 commits February 24, 2021 13:02
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>
@paulo9mv paulo9mv force-pushed the disable-select-array-input-options branch from 61f53f7 to 2d55102 Compare February 24, 2021 17:02
@fzaninotto fzaninotto merged commit e989299 into marmelab:next Feb 26, 2021
@fzaninotto
Copy link
Member

Thanks!

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

Successfully merging this pull request may close these issues.

None yet

4 participants