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

feat(form-input-choice): use the id instead of generating a new one #637

Merged
merged 1 commit into from
Jun 19, 2020

Conversation

xballoy
Copy link
Contributor

@xballoy xballoy commented Jun 18, 2020

When the ChoiceInput options don't have an id, use the id that we pass to create one (concatenate it with the index) instead of always generating a new one.

It allows to use snapshots with this component.

Fixes #616

@youf-olivier youf-olivier merged commit bc30558 into master Jun 19, 2020
@delete-merged-branch delete-merged-branch bot deleted the feature/616-id-choice-input branch June 19, 2020 09:47
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

Successfully merging this pull request may close these issues.

ChoiceInput doesn't have id on their options
3 participants