jsfiddle / togetherjs

A service for your website that makes it surprisingly easy to collaborate in real-time.
https://togetherjs.com
Mozilla Public License 2.0
7.01k stars 849 forks source link

TogetherJs not working well with shadow dom #1116

Closed toshovski closed 7 years ago

toshovski commented 7 years ago

I'm experimenting with togetherjs and it is a really great framework!

I'm trying to use the framework with polymer. Unfortunately there is an issue with finding elements, which have the same id in the document. Using web components that is not not a problem because these ids are in their own dom, but togetherJs tries to find the element by id and it finds always the first one, which isn't the right. So the mouse pointer jumps to that one component.

As workaround I used the togetherjs class for the elements and will try to solve that issue using custom events. Is there a better solution?

woniesong92 commented 7 years ago

Thanks! How did you end up with multiple elements with the same id?

woniesong92 commented 7 years ago

Closing for inactivity but feel free to open it later.