Mechazawa / vue2-teleport

Teleport component for vue2 that works the same as vue3's teleport
Creative Commons Zero v1.0 Universal
33 stars 4 forks source link

Unable to teleport to multiple locations #1

Open jwoertink opened 3 years ago

jwoertink commented 3 years ago

I wanted to use a class selector so I can insert a single component in to multiple locations. It looks like the main Vue teleport supports this.

I assume it's because this uses querySelector instead of querySelectorAll

https://github.com/Mechazawa/vue2-teleport/blob/94cf6937c83cefe27104a500ac312344ffe9b5ed/src/Teleport.vue#L78

Mechazawa commented 2 years ago

I started working on fixing this but sadly never finished it. https://github.com/Mechazawa/vue2-teleport/tree/fix/multi_target