Skip to content

v-for directive doesn't work properly in template tag #110

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
LurkingExorcist opened this issue Mar 23, 2021 · 7 comments
Closed

v-for directive doesn't work properly in template tag #110

LurkingExorcist opened this issue Mar 23, 2021 · 7 comments
Labels

Comments

@LurkingExorcist
Copy link

This code works well in browser, but volar throws error.

image

@johnsoncodehk
Copy link
Member

johnsoncodehk commented Mar 23, 2021

It should be working, please give me a repro.

@LurkingExorcist
Copy link
Author

I think it doesn't work becouse of dynamic v-slot directive, could you check it?

image
image

@johnsoncodehk
Copy link
Member

This is @vue/compiler-dom problem, v-for not working with dynamic slot, maybe fix by this PR: vuejs/core#3374

But I don't know why working on browser, are you using vue 3?

@LurkingExorcist
Copy link
Author

But I don't know why working on browser, are you using vue 3?

no, vue 2

@johnsoncodehk
Copy link
Member

I see, it's makes sense.

If vue 3 fixed this problem I will publish a new version, thanks for the report!

@johnsoncodehk
Copy link
Member

Reopen because actually vue compiled valid render code, not sure this is design or bug.

@johnsoncodehk johnsoncodehk reopened this Mar 28, 2021
johnsoncodehk added a commit that referenced this issue Mar 31, 2021
@johnsoncodehk
Copy link
Member

Added a patch in 0.22.26 for now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants