Skip to content

Conversation

zeezo887
Copy link
Collaborator

Description

This PR fixes an issue where checkboxes would break if the corresponding field was not set on the model. Previously, when the field was missing, its value defaulted to an empty string (''). This led to a TypeError: i.push is not a function when interacting with the checkbox, since JavaScript cannot push values into a string.

The fix ensures the default value is an empty array instead, allowing checkboxes to function correctly even when the model field is unset.

Related Issues

Fixes #2758

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.

Checkboxes not working

1 participant