Skip to content

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

@maxschwarzmueller

Description

@maxschwarzmueller

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions