Subscribe on changes!

bugs: teleport component with router push occur error

avatar
Aug 29th 2023

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

avatar
Aug 29th 2023
- <teleport to="#app">
+ <Teleport to="body">
// or
+ <Teleport to="#foo">
avatar
Aug 30th 2023
- <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

avatar
Oct 12th 2023

@edison1105 is this bug fixed?

avatar
Oct 12th 2023

@yangtoude Not yet. the PR is still open.