Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

@input No longer working in the Vue3 Beta Version #1695

Closed
JordashTalon opened this issue Oct 7, 2022 · 3 comments
Closed

@input No longer working in the Vue3 Beta Version #1695

JordashTalon opened this issue Oct 7, 2022 · 3 comments
Labels

Comments

@JordashTalon
Copy link

Please respect maintainers time by filling in these sections. Your issue will likely be closed without this information.

  • Vue Version: Vue 3
  • Vue Select Version: ^4.0.0-beta.5

Describe the bug
@input is no longer firing

Steps To Reproduce
Use @input="onInput()" the onInput() is never fired.

Expected behavior
When the v-model is changed the @input function is fired.

This was working in Vue2 but not the Vue3 beta. I was able to get a change event working with the @option:selected event but @input no longer works. @option:selected also doesn't handle when the clear x button is clicked.

@hainguyenhd
Copy link

You can use
<v-select v-model="value" :options="options" @option:selected="selectedHandle">

@hainguyenhd
Copy link

More:
"@OPEN",
"@close",
"@update:modelValue",
"@search",
"@search:compositionstart",
"@search:compositionend",
"@search:keydown",
"@search:blur",
"@search:focus",
"@search:input",
"@option:created",
"@option:selecting",
"@option:selected",
"@option:deselecting",
"@option:deselected"

@JordashTalon
Copy link
Author

Thanks @hainguyenhd @update:modelValue is the one that worked best for me, that also handles the case when the value is cleared.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants