Open jwoertink opened 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
querySelector
querySelectorAll
https://github.com/Mechazawa/vue2-teleport/blob/94cf6937c83cefe27104a500ac312344ffe9b5ed/src/Teleport.vue#L78
I started working on fixing this but sadly never finished it. https://github.com/Mechazawa/vue2-teleport/tree/fix/multi_target
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 ofquerySelectorAll
https://github.com/Mechazawa/vue2-teleport/blob/94cf6937c83cefe27104a500ac312344ffe9b5ed/src/Teleport.vue#L78