marmelab / marmelab/react-admin
ReferenceArrayInput with AutocompleteArrayInput flickers and resets value on search when used with format and parse
@djhi is already working on this.
Since Jan 27, 2023.
- Dominant language
- TypeScript
- Stars
- 26.9k
- Forks
- 5.5k
- Avg merge
- 2d 3h
- Merged PRs (30d)
- 19
Description
**What you were expecting:**
When using AutocompleteArrayInput with a ReferenceArrayInput with parse/format options:
- the options list should not flicker
- the input value should not reset itself
**What happened instead:**
- the options list values flicker
- the input value resets itself
**Steps to reproduce:**
1. Open code sandbox
2. In the preview window, go to Comments list
3. Click on the icon to create a new comment
4. Select any value(s) in the Comments input
5. Enter any few characters
**Related code:**
CodeSandox: https://codesandbox.io/s/array-reference-input-xrrv94?file=/src/posts/PostCreate.tsx
**Environment**
* React-admin version: 4.7.1
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.