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

DOM node of a mounted component is not a child of Document if the component is wrapped with both Transition and Suspense. #6401

Closed
wuww007 opened this issue Aug 3, 2022 · 1 comment

Comments

@wuww007
Copy link

wuww007 commented Aug 3, 2022

Vue version

3.2.37

Link to minimal reproduction

Steps to reproduce

<Transition name="page" mode="out-in">
      <Suspense>
          <my-component-one v-if="flag"></my-component-one>
          <my-component-two v-else></my-component-two>
      </Suspense>
</Transition>
  1. Update the flag from true to false that will change <my-component-one> to <my-component-two >.
  2. The $el of <my-component-two > is not a child of Document in the lifecycle mounted.

What is expected?

The $el of a component should have been inserted into Document in the lifecycle mounted.

What is actually happening?

Refer to Steps to reproduce

System Info

No response

Any additional comments?

No response

@posva posva added scope: transition scope: suspense 🐞 bug Something isn't working ❗ p4-important Priority 4: this fixes bugs that violate documented behavior, or significantly improves perf. labels Aug 31, 2022
@posva
Copy link
Member

posva commented Aug 31, 2022

Duplicate of #5844

@posva posva marked this as a duplicate of #5844 Aug 31, 2022
@posva posva closed this as not planned Won't fix, can't repro, duplicate, stale Aug 31, 2022
@posva posva removed 🐞 bug Something isn't working scope: transition scope: suspense ❗ p4-important Priority 4: this fixes bugs that violate documented behavior, or significantly improves perf. labels Aug 31, 2022
@github-actions github-actions bot locked and limited conversation to collaborators Sep 22, 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

2 participants