Custom panel field (checkboxes) doesn't save correctly (bug?)

Custom panelfield (checkboxes) doesn’t save correctly:

 chosenattendeetypeagenda:
  label: Chosen Attendee types agenda
  type: chosenattendeetypeagenda


 <k-input
  type="checkboxes"
  v-model="value"
  :options="[{ value: 'a', text: 'Option A' },{ value: 'b', text: 'Option B' }]"
  theme="field"
  @input="onInput"
/>


methods: {
  onInput(value){
    this.$emit("input",value);
  }
}

should save like this:

Chosenattendeetypeagenda: a,b

but saves wrong:

Chosenattendeetypeagenda:

- ""
- a
- b

When i adjust the txt-file manually: the checkboxes are shown correctly in the panel.

Am i doing something wrong or is this a bug?

I made it work with this workaround:

onInput(value){
  arr=[];
  for (i = 0; i < value.length; i++) {
    if(value[i] !="" ){
     arr.push(value[i]);
    }
  }
  this.$emit("input",arr.toString());
}