bug: v-model not working on gcds-checkbox
Context : Issue was flagged first by DFO user , but product team ended creating the ticket
As noted in this comment the v-model is not working properly for the gcds-checkbox component in Vue.
Example
https://stackblitz.com/edit/vitejs-vite-vmu2f2?file=src%2FApp.vue
<script setup>
import { ref } from 'vue'
const checkboxValue = ref(false)
</script>
<template>
<gcds-checkbox
checkbox-id="checkbox-default"
label="CheckboxLabel"
name="checkbox"
hint="Description or example to make the option clearer."
v-model="checkboxValue"
>
</gcds-checkbox>
</template>
Start with investigation.
Might need to configure componentModel in output configuration for gcds-checkbox https://stenciljs.com/docs/vue#componentmodels
Being tackled today to investigate
Pausing on this since we are revisiting the checkbox component soon
Should be fixed with the latest Checkbox updates coming soon.
Ready for verification now that Fieldset updates is published.
With introduction of gcds-checkboxes the gcds-checkbox has been removed. gcds-checkboxes has been confirmed to work with v-model