Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nested indexing in v-model #3673

Closed
BSalwiczek opened this issue Apr 25, 2021 · 0 comments · Fixed by #3675
Closed

Nested indexing in v-model #3673

BSalwiczek opened this issue Apr 25, 2021 · 0 comments · Fixed by #3675
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

Comments

@BSalwiczek
Copy link

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
Screenshot from 2021-04-25 22-47-48
and v-model don't work as expected.

@HcySunYang HcySunYang added 🐞 bug Something isn't working scope: compiler 🔨 p3-minor-bug Priority 3: this fixes a bug, but is an edge case that only affects very specific usage. labels Apr 26, 2021
Sociosarbis pushed a commit to Sociosarbis/vue-next that referenced this issue Apr 27, 2021
@github-actions github-actions bot locked and limited conversation to collaborators Oct 19, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
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
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants