marmelab / marmelab/react-admin

ReferenceArrayInput with AutocompleteArrayInput flickers and resets value on search when used with format and parse

Open
#8,595 4 comments 0 reactions 1 assignee View on GitHub

@djhi is already working on this.

Since Jan 27, 2023.

documentation
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.