[Solved] q-select on change event not triggered
-
Is there an example to trigger q-select change event?
I am using below code, but it seems not work.<q-select :value="selValue" @change.native="onValueChange" :options="options" /> methods: { onValueChange () { // something change } }
-
<q-select :value="model" @change="val => { onValueChange() }" :options="options" />
https://quasar-framework.org/components/select.html#Vue-Events -
I believe for a single select, you can also just use @input. @change is more for multiple selects and first acting on the final (changed) selection, once all selections are made and the popover is closed. Or put another way, both @change and @input will be fired at the same time, with a single select.
Scott
-
@metalsadman thanks!
-
@s-molinari thanks for the more detailed explanation!