-
-
Notifications
You must be signed in to change notification settings - Fork 8.8k
Closed
Labels
Description
What problem does this feature solve?
Oftentimes I find myself writing components that semantically belong where they are but need to be displayed somewhere else in my app. Teleport is there to solve the problem - but you can only port outside of the app. Whenever I target an element which is rendered by vue itself it echos a warning that the element needs to be mounted first. Unfortunately, not every usecase can be rewritten in a way, that it falls into the simply modal-button category.
I opened a stackoverflow issue with a reproduction: https://stackoverflow.com/questions/63652288/does-vue-3-teleport-only-works-to-port-outside-vue
What does the proposed API look like?
Either have a teleport target component as in portal-vue or allow targeting ids of other components
syuilo, amrnn90, kytosai, Liwoj, technology-gt and 16 morerenatodeleao and jd-solanki