Skip to content

fix(compiler-core): should force dynamic slots when using scope vars in dirs #2568

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

Closed
wants to merge 1 commit into from
Closed

fix(compiler-core): should force dynamic slots when using scope vars in dirs #2568

wants to merge 1 commit into from

Conversation

HcySunYang
Copy link
Member

close: #2564

@yyx990803
Copy link
Member

The actual cause:

  • v-on has its own special expression processing (it's skipped in transformExpression)
  • However, it is not replacing the original exp on the directive node, so the scope ref check is checking the non-processed expression node.

The fix is ensure v-on replaces the original exp with the processed one so the scope ref check can work properly.

See 9db7095

@yyx990803 yyx990803 closed this Nov 30, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

handlers depend on outer scope's value in nested slots are not updated
2 participants