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

Add ability for checkboxes to be used with arrays #47

Closed
SageStarCodes opened this issue Dec 10, 2019 · 3 comments
Closed

Add ability for checkboxes to be used with arrays #47

SageStarCodes opened this issue Dec 10, 2019 · 3 comments

Comments

@SageStarCodes
Copy link

Currently the checkbox component does not work as expected. Normally the input element of type checkbox can work with arrays referenced in v-model by adding and removing its value from the array, gb-checkbox just coerces whatever is in the value property to a boolean by using the ! operator and following that, it overwrites the array.

@LeCoupa
Copy link
Owner

LeCoupa commented Dec 10, 2019

I don't understand what you are trying to do. Normally, a checkbox should return a Boolean value (true when checked, false when unchecked).

Do you have an example in mind?

@SageStarCodes
Copy link
Author

Yes, I do, I would like to be able to use the checkboxes as shown in the example in Vue.js documentation: https://vuejs.org/v2/guide/forms.html#Checkbox

@LeCoupa
Copy link
Owner

LeCoupa commented Dec 11, 2019

I see it now. Thank you. Unfortunately, I do not plan on adding this behavior as you could use the field-toggle to get the same.

@LeCoupa LeCoupa closed this as completed Dec 11, 2019
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

No branches or pull requests

2 participants