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

Implement radio component edit form #57

Merged
merged 4 commits into from
Nov 21, 2023

Conversation

sergei-maertens
Copy link
Member

Closes #56

Very similar to the selectboxes component, so the code is mostly copy pasted 😬

A shameless adapted copy and paste from selectboxes component,
to be tweaked to suit radio inputs.
src/components/formio/radio.stories.ts Outdated Show resolved Hide resolved
src/components/formio/radio.stories.ts Outdated Show resolved Hide resolved
src/registry/radio/helpers.ts Show resolved Hide resolved
This is mostly copy pasted from selectboxes and adapted
for the singular value and the matching 'name' attribute,
while adding the required 'value' attribute.
Biggest change after the copy-paste from selectboxes. The logic
is simplified since there is no special data structure for
multiple values selected or not - it's just a single value
from each of the options.
... and fixed the default value switch.
@sergei-maertens sergei-maertens force-pushed the feature/56-radio-component-edit-form branch from d949f4c to 11412e2 Compare November 21, 2023 11:41
@sergei-maertens sergei-maertens merged commit 582a639 into main Nov 21, 2023
8 checks passed
@sergei-maertens sergei-maertens deleted the feature/56-radio-component-edit-form branch November 22, 2023 15:13
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.

Implement radio component edit form
2 participants