Closed sattes-faction closed 2 years ago
Ah, like always after fiddling around with this for a bit and writing this ticket I found the issue. I was using vue-simple-portal. After switching to portal-vue this works as expected with the MountingPortal component.
Sorry for wasting your time! And thanks for this component :-)
I'm having an app which has a list of items already rendered from the backend. When portal comes into play it appends it's contents below the existing content in the given container. However, I want the existing content to be cleared (this happens when a user clicks a button and the portal becomes active). Is that possible somehow? Here's an example (written out of my head):
In the vue app I have:
And it gives me
But what I want is (with or without the additional divs):
Is this already possible somehow?