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

When a user specifies a specific key within a v-if directive, Vue should use the user-provided key instead of its internally generated key. #11727

Open
linzhe141 opened this issue Aug 28, 2024 · 0 comments · May be fixed by #11728

Comments

@linzhe141
Copy link
Contributor

linzhe141 commented Aug 28, 2024

Vue version

3.4.38

Link to minimal reproduction

https://play.vuejs.org/#eNp9UclOwzAQ/ZWRL22l0gU4lbQSoB5AYhH06IubToJbx468hKKq/844UbogVEeKZn3z3syO3ZfloArIJizxWJRKeJxxDZCsZFUbZLYJqK5kNuUsUyLnDCYb/CFvPBpxNhOnLxmeYZ1DoHLY9l6P6ubl8f1pTYYNj7MwuS61svSghM4Jxjui49CHkrKyKI31sAOLWR+MfjFBe1zBHjJrCuiQ2s4d16nRzoNYpjCFcetGZeRTZ9fbgD2qi98BpNvtwXQGu0iN5i1kgSb40yjUGINKqICElAlSSygA+z7QpkYRch9/ybDRMGN94k/jM5kP1s5oOkWNxFlqilIqtG+ll0SPs0k7gzOhlPl+rmORab+Np1+Ybv6Jr902xjh7t+jQVsjZIeeFzdE36fnnK27JPiQLswqKqi8kP9AZFSLHpuwh6BXRPqmr2T7Vh5E6X7j51qN2rahItFlRo5su9HhB+pHuzeC27qOVsv0v96nqiw==

Steps to reproduce

image

What is expected?

The compiled results should be key: 100, key: 2000

What is actually happening?

The compiled results are actually key: 0, key: 1

System Info

No response

Any additional comments?

No response

@linzhe141 linzhe141 changed the title When the user uses a specific key in v-if, the key provided by the user should be used instead of the key set inside vue. When a user specifies a specific key within a v-if directive, Vue should use the user-provided key instead of its internally generated key. Aug 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants