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

Aperta
#8,595 4 commenti 0 reazioni 1 assegnatario Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

@djhi ci sta già lavorando.

Dal 27/1/2023.

  • #8599 di @djhi — integrata

Valutazione

Questa issue non è ancora stata valutata.

Descrizione

documentation

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
Lingua principale
TypeScript
Stelle
27k
Fork
5.5k
Merge medio
1g 3m
PR unite (30g)
32

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di marmelab/react-admin

Tutte le issue di marmelab/react-admin

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.