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

Template Ref watcher not triggered in Vue 2.7 #12569

Closed
dm4t2 opened this issue Jun 21, 2022 · 3 comments
Closed

Template Ref watcher not triggered in Vue 2.7 #12569

dm4t2 opened this issue Jun 21, 2022 · 3 comments

Comments

@dm4t2
Copy link

dm4t2 commented Jun 21, 2022

Version

2.7.0-beta.4

Reproduction link

codesandbox.io

Steps to reproduce

Open the CodeSandbox and watch the console output.

What is expected?

There should be a log entry.

What is actually happening?

There's no log entry because the watcher is not triggered.


This works in Vue 2.6 (with Composition API plugin) and Vue 3:

https://codesandbox.io/s/vue-2-6-14-template-ref-watcher-working-example-3fec25?file=/src/App.vue
https://codesandbox.io/s/vue-3-2-33-template-ref-watcher-working-example-nd1imp?file=/src/App.vue

@stevebauman
Copy link

Hmm this still isn't resolved in 2.7.7...

@dm4t2
Copy link
Author

dm4t2 commented Jul 16, 2022

My CodeSandbox reproduction works with v2.7.7: https://codesandbox.io/s/vue-2-7-template-ref-watcher-issue-be6ghd

@stevebauman
Copy link

Unfortunately not with an array of template refs:

#12675

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

No branches or pull requests

2 participants