And the data value of selectedOptions is ['a','b']. But when running the fiddle nothing gets selected. Alternatively if I just set it to ['a'], then it works.
Thanks very much @almazk. Your solution does indeed work. It would be nice if framework7’s smart select vue bindings more genuinely implement a simple v-model without this extra supplemental code.
By the way, if you use numbers instead of strings, you could use newValues.push(selectedOptions[Index]['_value']) - underscore at the beginning of value
The difference of this is it preserves the type of the given value.
Thanks @almazk. One thing missing from your approach is that updating the bound selectedOptions does not update the list item automatically, unless the list is re-rendered by leaving the page and coming back to it. See the following fiddle, where I update selectedOptions in a setTimeout, and list item does not update: https://jsfiddle.net/jacobg/sm8Lwf3o/
@pvtallulah, your solution is what I have been waiting for a long time. I use smart select in a little different scheme. I created my own component that relies on it. And there already transferring(say it passing) via v-model.