- Issue created by @prudloff
- Merge request !40Draft: Only skip children when the state is "required" → (Open) created by prudloff
🐛
If target field is multiple checkbox and condition is required then all checkboxes are being required.
Fixed
broke a visible condition on a checkboxes field for us.
Before, the state (visible, required, etc.) was applied to every checkbox.
Now, the state is not applied to individual checkboxes.
For conditions that add/remove the required state, this is intended and the required property is now added to the parent field wrapper by js/conditional_fields.js
.
But for conditions that add/remove the visible state, it means the checkboxes are no longer hidden.
ConditionalFieldsElementAlterHelper::afterBuild()
should only do nothing on children when the condition triggers a required state.
Active
4.0
Code