[Vuejs]-Event received from child is never updated

1👍

Your event includes the updated filter data, you can use that to update the filter values in the parent:

function checkit(changedFilter:IFilter) { // pass in child filter value
  f.value = changedFilter  // assign the child filter values to local filter
  ...
}

That should be all.

0👍

I think you should use reactive() instead of ref() , to manage the state of an object.
try it:

const f = reactive<IFilter>({
    advanced: false,
    all: true,
    docker: false,
    gcp: false,
    go: false,
});

Leave a comment