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

How to use @change/@input for changing a local value #1825

Closed a1danw closed 3 months ago

a1danw commented 3 months ago

Is it possible to use an @change or @input to watch for a state change as I need my button to be disabled on mount until a value changes but its not achievable with v-model as it triggers on mount. I have tried adding @input="changed = true" but its not triggering

a1danw commented 3 months ago

I used a combination of @open="dropdownOpened" and watch to look out for new changes.