Skip to content
This repository has been archived by the owner on Jan 3, 2024. It is now read-only.

Fix/improve checkbox #728

Closed
kulmann opened this issue Apr 23, 2020 · 1 comment
Closed

Fix/improve checkbox #728

kulmann opened this issue Apr 23, 2020 · 1 comment
Labels
bug Something isn't working

Comments

@kulmann
Copy link
Member

kulmann commented Apr 23, 2020

With raw checkbox inputs it's possible to create a group of checkboxes (v-for) to track which elements are selected.

  • create an array for selection tracking
  • create a set of checkbox (v-for)
  • set the selection tracking array as v-model
  • set the item from the iterator as :value
  • (add a label rendering something for the checkbox)

The result is, that Vue syncs the selection state from the checkboxes into the array. With our oc-checkbox component, this functionality is lost, as we only accept a boolean value.

Reference: https://vuejs.org/v2/guide/forms.html#Checkbox

@kulmann kulmann added the bug Something isn't working label Apr 23, 2020
@kulmann
Copy link
Member Author

kulmann commented Oct 6, 2020

Implemented in #890

@kulmann kulmann closed this as completed Oct 6, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant