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

warning dans le composant Select #265

Closed
timothee-LJN opened this issue Jun 24, 2024 · 5 comments
Closed

warning dans le composant Select #265

timothee-LJN opened this issue Jun 24, 2024 · 5 comments

Comments

@timothee-LJN
Copy link

Le composant Select exporté depuis SelectNext modifie directement la valeur des options avec selected: true et cause un warning de react.

image

Ajouter selected: undefined dans la définition des options passées au composant <Select /> ne permet pas de faire disparaitre le warning en console.

@martinratinaud
Copy link

Meme problème pour nous chez FCU

@ddecrulle
Copy link
Collaborator

Bonjour, vous avez un code pour reproduire ça ?

J'ai déjà eu ce souci et je viens de regarder sur mon app, je n'ai plus le warning et je vois rien dans mon code d'explicite ...

@garronej
Copy link
Collaborator

Oui en effet c'est très maladroit, il faut reprender ça

garronej added a commit that referenced this issue Jul 16, 2024
@garronej
Copy link
Collaborator

J'ai retravailler le composant SelectNext.
Vous pouvez tester dans la release candidate 1.9.30-rc.1
Je vous laisse me dire si tout marche correctement.

@garronej
Copy link
Collaborator

C'est disponible dans 1.9.31. Merci d'avoir fait remonter!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants