diff --git a/client/src/components/inputs/PillBar.vue b/client/src/components/inputs/PillBar.vue index 9c3e214..6831494 100644 --- a/client/src/components/inputs/PillBar.vue +++ b/client/src/components/inputs/PillBar.vue @@ -10,25 +10,17 @@ const props = defineModel<{ }>(); let { options, modelValue } = $(props); -const emit = defineEmits<{ - (event: 'selectionChanged'): void -}>(); - -function select(option: any, index: number) { - for(let opt of options) { - opt.selected = false; +onMounted(async() => { + if (modelValue === undefined) { + modelValue = 0 } - option.selected = true; - modelValue = index; - emit('selectionChanged'); - console.debug("selected", options); -} +});