8000 fix(compiler-core): Refs inside v-for are not applied through v-bind (fix #10696) by quiteeasy · Pull Request #10706 · vuejs/core · GitHub
[go: up one dir, main page]

Skip to content

fix(compiler-core): Refs inside v-for are not applied through v-bind (fix #10696) #10706

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

Merged
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
[autofix.ci] apply automated fixes
  • Loading branch information
autofix-ci[bot] authored Apr 22, 2024
commit 88a4a30a430e2158641266de4fa850634073eb68
13 changes: 7 additions & 6 deletions packages/compiler-core/src/transforms/transformElement.ts
Original file line number Diff line number Diff line change
Expand Up @@ -618,12 +618,13 @@ export function buildProps(
if (isVBind) {
// if in v-bind object will have a ref we should set ref_for to true
// otherwise the ref will be set to a random element in the list
if (hasVFor) properties.push(
createObjectProperty(
createSimpleExpression('ref_for', true),
createSimpleExpression('true'),
),
)
if (hasVFor)
properties.push(
createObjectProperty(
createSimpleExpression('ref_for', true),
createSimpleExpression('true'),
),
)
// have to merge early for compat build check
pushMergeArg()
if (__COMPAT__) {
Expand Down
0