Skip to content

[DOC] Rewrite autocompletearray input create doc example #10700

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

Merged
merged 4 commits into from
Apr 29, 2025

Conversation

Cimanel
Copy link
Contributor

@Cimanel Cimanel commented Apr 25, 2025

Problem

Current examples of in the docs leverage useCreate, and require calling create manually with data coming from self-managed controlled inputs.
https://marmelab.com/react-admin/AutocompleteArrayInput.html#creating-new-choices:~:text=OptionRenderer%20/%3E%3B-,Creating%20New%20Choices,-The%20%3CAutocompleteArrayInput%3E

Solution

It’s actually simpler to leverage , which removes the need to call create directly, and opens the ability to use

along with RA Input components.

How To Test

http://localhost:9010/?path=/story/ra-ui-materialui-input-autocompletearrayinput--inside-reference-array-input-with-creation-support

Additional Checks

  • The PR targets master for a bugfix or a documentation fix, or next for a feature
    - [ ] The PR includes unit tests (if not possible, describe why)
  • The PR includes one or several stories (if not possible, describe why)
  • The documentation is up to date

Also, please make sure to read the contributing guidelines.

@Cimanel Cimanel added the RFR Ready For Review label Apr 25, 2025
@Cimanel Cimanel changed the title [DOC] Rewrite autocompletearray input [DOC] Rewrite autocompletearray input create doc example Apr 28, 2025
>
<SimpleForm defaultValues={{ name: filter }}>
<TextInput
source="tag"
Copy link
Contributor

Choose a reason for hiding this comment

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

Shouldn't the source be "name"? 🤔

@slax57 slax57 added this to the 5.7.5 milestone Apr 29, 2025
@slax57 slax57 merged commit 6fb28fb into master Apr 29, 2025
16 checks passed
@slax57 slax57 deleted the rewrite-autocompletearray-input branch April 29, 2025 09:25
@slax57 slax57 modified the milestones: 5.7.5, 5.8.0 Apr 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
RFR Ready For Review
Development

Successfully merging this pull request may close these issues.

2 participants