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

Radio component defaultValue changes to null after saving. Instead of the desired: "". #5104

Open
LaurensBurger opened this issue Feb 13, 2025 · 0 comments
Labels
triage Issue needs to be validated. Remove this label if the issue considered valid.

Comments

@LaurensBurger
Copy link
Collaborator

LaurensBurger commented Feb 13, 2025

Product versie / Product version

3.0.4

Customer reference

reported by: DH, hlm, Ensc

Omschrijf het probleem / Describe the bug

When you add a radio component to a step, the initial defaultValue is set to: "".
By saving the component the defaultValue gets changed to null.

The issue with null is when this radio is hidden with "empty when hidden" is enabled, the component is included in the check_logic as "radio": "", which in turn triggers validation for the step with no user interaction. Unfortunately this issue is pretty prevalent across environments.

After manually changing the null back to "" in the json of the radio component - this validation triggering is no longer an issue.

Image

Image

Verwacht gedrag / Expected behavior

i expect the defaultValue to not cause validation to trigger when a step loads

Screen resolution

None

Device

None

OS

None

Browser

No response

@LaurensBurger LaurensBurger added the triage Issue needs to be validated. Remove this label if the issue considered valid. label Feb 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
triage Issue needs to be validated. Remove this label if the issue considered valid.
Projects
None yet
Development

No branches or pull requests

1 participant