Skip to content
This repository has been archived by the owner on Mar 21, 2023. It is now read-only.

@change not working #65

Open
EugenGedroyc opened this issue Sep 7, 2022 · 0 comments
Open

@change not working #65

EugenGedroyc opened this issue Sep 7, 2022 · 0 comments

Comments

@EugenGedroyc
Copy link

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))
  }"
/>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant