I've tried unsuccessfully to get a v-model to work correctly with the smart-select form, and looking through the component source I can't find where the smart-select value is being saved at all. The framework7-vue docs are frustratingly lacking in terms of showing how to use the framework7 items in an actually useful way.
<f7-list form>
<f7-list-item smart-select smart-select-searchbar
title="Ladders" smart-select-open-in="popup"
v-model="selectedLadders" v-on:change="console.log('onChange')" v-on:input="console.log('onInput')">
<select name="ladders" multiple="multiple" >
<option v-for="ladder in LadderConfigs" :key="ladder.key" :value="ladder.key" :input-value="ladder.key">{{ladder.name}}</option>
</select>
</f7-list-item>
</f7-list>
...
watch: {
selectedLadders(new) {
console.log("ladders changed:", new)
},
}
Am I missing some hidden field, messed up my implementation, or something else? I already had to find the un-documented input-value prop for the radio select to work, so I wouldn't be surprised if I'm missing something here too.
Thanks!