Nested indexing in v-model #3673
Labels
🔨 p3-minor-bug
Priority 3: this fixes a bug, but is an edge case that only affects very specific usage.
🐞 bug
Something isn't working
scope: compiler
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]]"
wherey
is object andx
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.
The text was updated successfully, but these errors were encountered: