How to customize el-select-v2 filterable function

Viewed 261

I'm trying to use the filter-method to customize the filter options like in the el-select component but it doesn't work. Has anyone managed to make a custom filter for the el-select-v2 component options?

<el-select-v2
      v-model="form.project"
      filterable
      :options="projects"
      placeholder="Select a project"
      style="width: 100%"
      clearable
      :filter-method="filter"
>
const projects = computed(() => store.getters['project/projectOptions']);
const filter = (query) => filterOptions(projects.value, query);
1 Answers
Related