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

Comments inside Transition are considered as a node #5675

Closed
HassanZahirnia opened this issue Apr 6, 2022 · 2 comments
Closed

Comments inside Transition are considered as a node #5675

HassanZahirnia opened this issue Apr 6, 2022 · 2 comments
Labels
🐞 bug Something isn't working scope: transition

Comments

@HassanZahirnia
Copy link

Version

3.2.31

Reproduction link

sfc.vuejs.org/

Steps to reproduce

Just add comments inside Transition and you can see it breaks by showing a <transition> can only be used on a single element or component error

What is expected?

The transition component should work as expected since comments are not real DOM elements.

What is actually happening?

Vue shows an error saying:
can only be used on a single element or component

@edison1105
Copy link
Member

use transition-group instead. see sfc

@posva posva marked this as a duplicate of #5266 Apr 7, 2022
@posva posva closed this as completed Apr 7, 2022
@edison1105
Copy link
Member

edison1105 commented Apr 7, 2022

@posva I tested this one on my PR of #5266, its not a duplicate.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
🐞 bug Something isn't working scope: transition
Projects
None yet
4 participants