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

Teleport not working #992

Closed
stefnotch opened this issue Apr 19, 2020 · 3 comments
Closed

Teleport not working #992

stefnotch opened this issue Apr 19, 2020 · 3 comments

Comments

@stefnotch
Copy link

Version

3.0.0-beta.2

Reproduction link

https://codesandbox.io/s/vue-3-typed-arrays-nyx47?file=/index.html

Steps to reproduce

Create a new project, add a tag at the bottom of the #app and try to teleport to it.

Furthermore, if you have a in a child component, it doesn't work at all.

What is expected?

That the elements get teleported

What is actually happening?

An error message is being show in the developer tools.


I've been able to get teleport to work within the same component using the webpack setup. However, child to parent teleporting doesn't seem to work.

@yyx990803
Copy link
Member

yyx990803 commented Apr 19, 2020

The target element cannot be a part of the same component... It needs to be outside of <div id="app">.

@zyxm5
Copy link

zyxm5 commented Mar 2, 2021

The target element cannot be a part of the same component... It needs to be outside of <div id="app">.

It is not work

@zyxm5
Copy link

zyxm5 commented Mar 2, 2021

The target element cannot be a part of the same component... It needs to be outside of <div id="app">.

It is not work
I put the endofbody element before the app,it worked. I guess it is because the endofbody element has not rendered when resolve teleport element
Snipaste_2021-03-02_17-16-55

@github-actions github-actions bot locked and limited conversation to collaborators Oct 25, 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

3 participants