hey. i got a multi select field which is filterable. based on the filter text, i generate the options (adding more options when filter text matches one of the initial options). now i want to propagate the filter input with some text at some point in time and everything should behave as if the user just entered the text (options list opens, filterMethod
gets called to update options, etc.) but i have some problems.
i want to trigger that when someone clicks on the initial options. i dont want the user to select the initial options but convert the clicked option into a filter string (as if the user typed it on its own). via the @input
event, i check if the last item is one of the initial options and if it is, i remove it from the selection and want to insert its value as the filter string. but here i run into problems. it removed the item from the selection but when i want to set things like query
or previousQuery
or trigger handleQueryChange(filterString)
on the select component, it gets set back to empty string right afterwards.
Meteor + Vue3 + Element Plus
, but get errorelement-plus/packages/components/color-picker/src/components/alpha-slider.vue: Unexpected token, expected "," (14:19)
12 | props: {
13 | color: {
> 14 | type: Object as PropType<Color>,
| ^
15 | required: true,
16 | },
17 | vertical: {