Nested indexing in v-model
Version
3.0.11
Reproduction link
https://codepen.io/bsalwiczek/pen/zYNeLGw
Steps to reproduce
Use v-model (in the component) referring to attribute of object indexed by the item in an array. Something like v-model="y[x[0]]"
where y
is object and x
is array.
What is expected?
I'm expecting v-model to correctly interpret which item I want to refer to (using :model-value
with @update:model-value
works - check reproduction link).
What is actually happening?
The warning shows in console and v-model don't work as expected.