[Solved] QSelect @change broken in 0.15?
-
<q-select v-model="chartPeriod" :options="chartPeriodOptions" @change="chartPeriodChanged"></q-select>
data defined as:
chartPeriod: 36, chartPeriodOptions: [{label: '1 Year', value: 12}, {label: '3 Years', value: 36}],
The chartPeriodChanged() method was called with 0.14.x and prior when a select item is selected, the method is not being called with 0.15.x.
Any help would be appreciated.
-
Maybe try @change.native?
-
Thanks, I tried @change.native with no success. This feels like a pretty significant issue - I’ll dig into the Quasar source later today.
-
I replaced @change with @input to resolve this issue. This might want to be clarified in the documentation as it’s a breaking change from 0.14
-
From 0.14->0.15 migration guide:
“In previous versions you would listen for @change event to detect changes. Now you can listen to @input for immediate changes or @change for lazy update. Vue v-model.lazy support is a pending change, so until then you can use the equivalent form (details below).”
-
@jeffatpf thank you. i use your solution