Skip to content

fix: Checkboxes not working #2761

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

Open
wants to merge 1 commit into
base: 3.x
Choose a base branch
from
Open

fix: Checkboxes not working #2761

wants to merge 1 commit into from

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