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

v-if inside of <teleport> fails when having multiple <teleport> children #1903

Closed
maxschwarzmueller opened this issue Aug 20, 2020 · 0 comments

Comments

@maxschwarzmueller
Copy link

Version

3.0.0-rc.6

Reproduction link

https://jsfiddle.net/hm2xszge/

Steps to reproduce

  1. Open JSFiddle Link
  2. Click "Open Dialog" Button
  3. Click "Close Dialog" Button inside of Modal

What is expected?

The dialog/ modal should close.

What is actually happening?

Closing fails and an error is thrown in the JS console in the dev tools:

Uncaught (in promise) TypeError: Cannot read property 'insertBefore' of null ...


It's possible that I'm using <teleport> in an invalid way:
Is <teleport> meant to be used with only one child element? I didn't find anything about that in the docs/ API reference.

underfin added a commit to underfin/vue-next that referenced this issue Aug 20, 2020
@github-actions github-actions bot locked and limited conversation to collaborators Nov 6, 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

Successfully merging a pull request may close this issue.

1 participant