-
Notifications
You must be signed in to change notification settings - Fork 26
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
Hidden components with "Multiple values" trigger validation #4659
Comments
Refinement: Task estimated here is changing the default value to an array ( Robin can do this in an hour. So, let's timebox this to 2 hours. After that, the proper estimate is: (whatever Robin thinks) |
I cannot reproduce this issue. I've followed these steps:
|
I've made a PR that ensures that textfields always have a valid value (so When a textfield (with the default value |
Looking at open-formulieren/formio-builder#184 I fail to see how this relates to the reported bug. Combined with the comment saying it can't be reproduced, I suspect we're looking in the wrong place. For any fix to be attempted, the issue must first be reproduced, then a failing regression test needs to be provided and finally a patch. The failing regression test now passing then proves the patch works, the regression test proves the problem is understood and will be prevented in the future. |
I quickly checked email component, and it has the same issue - |
Discussed in the office:
|
…ue-null-for-textfield [#4659] Fix default value for textfield
Product versie / Product version
latest
Customer reference
no particular but it get's reported
Omschrijf het probleem / Describe the bug
Hidden component with "Multiple values" set get their defaultValue changed from:
to:
This causes validation to trigger right after loading since their value is now [] instead of [ null ]
This can be resolved by changing the defaultValue to via the json of the components:
"defaultValue": [],
The text was updated successfully, but these errors were encountered: