LinusBorg / portal-vue

A feature-rich Portal Plugin for Vue 3, for rendering DOM outside of a component, anywhere in your app or the entire document. (Vue 2 version: v2.portal-vue.linusb.org)
http://portal-vue.linusb.org
MIT License
3.89k stars 188 forks source link

Please bring back hasContentFor #395

Open emahuni opened 1 year ago

emahuni commented 1 year ago

I noticed that the new version doesn't have this wormhole functionality anymore, and the documentation is missing wormhole documentation. Could you please bring back the function, as it was really helpful in determining whether to show or hide an element based on whether the target has content or not.

dsdsdsdsdsds commented 1 year ago

@emahuni, this works for me: Wormhole.getContentForTarget('yourTarget').length