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

Update ArrayInput to throw an error when using outdated disabled prop #10529

Merged
merged 2 commits into from
Feb 19, 2025

Conversation

fzaninotto
Copy link
Member

Problem

<ArrayInput disabled> isn't supported since v5 (see https://marmelab.com/react-admin/Upgrade.html#simpleformiterator-no-longer-clones-its-children).

Yet the component prop type still supports it, and the documentation says nothing about it.

This leads to developers wondering why this prop does nothing.

Solution

  • Update the type to fail compilation when readOnly or disabled are used
  • Update the doc to explain how to disable an ArrayInput
  • Fix remaining stories

@djhi djhi added this to the 5.6.0 milestone Feb 19, 2025
@djhi djhi merged commit 7eee670 into master Feb 19, 2025
16 checks passed
@djhi djhi deleted the arrayinput-disabled branch February 19, 2025 08:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
RFR Ready For Review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants