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

Dynamic Form : button radio non séléctionné en édition #3011

Closed
TheoLechemia opened this issue Apr 30, 2024 · 1 comment
Closed

Dynamic Form : button radio non séléctionné en édition #3011

TheoLechemia opened this issue Apr 30, 2024 · 1 comment

Comments

@TheoLechemia
Copy link
Member

Version
2.14.1

Description du bug
Lorsqu'on revient en édition sur un champs additionnel (dynamic form) de type "radio", l'item préalablement sélectionné n'est pas sélectionné.
Le bug se produit uniquement quand les valeurs de l'input radio commence par un chiffre 😵‍💫

Comment reproduire
Créer un champs additionnel du type "radio" et l'associé à Occtax. Mettre ces valeurs dans le champs "valeurs" :
[{"label": "100", "value": "100"}, {"label": "10", "value": "10"}, {"label": "autre", "value": "autre"}]
Créer un relevé en remplissant ce champs, puis revenir en édition sur le relevé -> l'item n'est pas séléctionné.

Si on enlève cette ligne https://github.com/PnX-SI/GeoNature/blob/master/frontend/src/app/GN2CommonModule/form/dynamic-form/dynamic-form.component.html#L222
ça fonctionne bien et le formcontrol est bien mis à jour via le onRadioChange

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

No branches or pull requests

2 participants