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

Imported ref variables in <script setup> are not properly handled for template refs #4593

Closed
kaldalton opened this issue Sep 15, 2021 · 1 comment

Comments

@kaldalton
Copy link

Version

3.2.11

Reproduction link

sfc.vuejs.org/

Steps to reproduce

Open the reproduction link above. Open the console and check the result.

There is an imported ref variable named compRef, which is later used in the template pointing to a component.

What is expected?

compRef.value should be the component instance.

What is actually happening?

compRef.value is null.


See this also for comparison, in which ref variables (created in-place, not imported) are properly handled.

@ygj6
Copy link
Member

ygj6 commented Sep 15, 2021

duplicate of #4546

@ygj6 ygj6 closed this as completed Sep 15, 2021
@github-actions github-actions bot locked and limited conversation to collaborators Oct 11, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants