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

bugs: teleport component with router push occur error #9071

Closed
haryan248 opened this issue Aug 29, 2023 · 4 comments
Closed

bugs: teleport component with router push occur error #9071

haryan248 opened this issue Aug 29, 2023 · 4 comments
Labels
🔨 p3-minor-bug Priority 3: this fixes a bug, but is an edge case that only affects very specific usage. scope: teleport

Comments

@haryan248
Copy link

Vue version

3.3.4 (latest)

Link to minimal reproduction

https://q8s5xk.csb.app/

Steps to reproduce

i have to router and object props
props has click event to child components
child components also have teleport component

<teleport to="#app">
      <div class="teleport">move</div>
</teleport>

teleport to app occured error
change to Fields('#app') to another class(ex: '.container'), it works

What is expected?

teleport to div tag with id 'app'

What is actually happening?

but it has error loop
image

System Info

No response

Any additional comments?

No response

@Shyam-Chen
Copy link
Contributor

Shyam-Chen commented Aug 29, 2023

- <teleport to="#app">
+ <Teleport to="body">
// or
+ <Teleport to="#foo">

@haryan248
Copy link
Author

- <teleport to="#app">
+ <Teleport to="body">
// or
+ <Teleport to="#foo">

If I change the class name, I know it works

but #app doesn't work is a vue bug.
so I think add caution in docs or fix this bug

@yangtoude
Copy link

@edison1105 is this bug fixed?

@edison1105
Copy link
Member

@yangtoude Not yet. the PR is still open.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
🔨 p3-minor-bug Priority 3: this fixes a bug, but is an edge case that only affects very specific usage. scope: teleport
Projects
None yet
5 participants