Open
Description
Vue 3 introduced <teleport>
, a feature which was very much inspired by the functionality provided by this library.
It does everything this library does, but better and without any caveats or hacks, as the moving of the DOM is implemented directly in Vue 3's renderer.
For that reason, this library will not be ported to Vue 3. The migration path is pretty straightforward:
Vue 2 & vue-simple-portal
<portal selector="#portal-target">
<p>This will be mounted as a child element
of <div id="portal-parget"> instead of
somewhere inside the child tree of <div id="app">
</p>
</portal>
Vue 3
<teleport to="#portal-target">
<p>This will be mounted as a child element
of <div id="portal-parget"> instead of
somewhere inside the child tree of <div id="app">
</p>
</teleport>
Metadata
Metadata
Assignees
Labels
No labels