vue-select2 icon indicating copy to clipboard operation
vue-select2 copied to clipboard

@change not working

Open EugenGedroyc opened this issue 2 years ago • 0 comments

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))
  }"
/>

EugenGedroyc avatar Sep 07 '22 16:09 EugenGedroyc