vue-select2
vue-select2 copied to clipboard
@change not working
I checked it in this repository @change="myChangeEvent($event)"
I need to filter options('sorter' in settings work fine) but i can't to get modelValue from 'input' that i type any symbols in. How can i get the first symbols that i typed ? Work only event @select but it is not suitable for this task
<Select2
value="modelValue"
@input="(e) => modelValue = e.target.value" //or @change
:settings="sorter: function (results) {
return results.filter((item) => item.text.startsWith(modelValue))
}"
/>