sagalbot / vue-select

Everything you wish the HTML <select> element could do, wrapped up into a lightweight, extensible Vue component.
https://vue-select.org
MIT License
4.62k stars 1.33k forks source link

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

Closed JordashTalon closed 1 year ago

JordashTalon commented 1 year ago

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

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 commented 1 year ago

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

hainguyenhd commented 1 year ago

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 commented 1 year ago

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