Back to discussionComment by d4l3k[-]d4l3k8 years ago3 replies#There's something weird going on in Chrome. This link works in Firefox though with the webcomponents polyfill https://codesandbox.io/s/jn85y61kx9[-]shihn8 years ago1 reply#I believe it's a shadow dom issue. Firefox doesnt support Shadow DOM yet so a 'shady dom' is used by the polyfille1110778 years ago#This seems to be because you are accessing the DOM of the element from the constructor which is a no no. Here's a simple repro:https://stackblitz.com/edit/lit-element-react-attributes-loc...swyx8 years ago#stuff like this is why i have trust issues with people who try to push webcomponents on me. I'm either not smart enough to understand why i dont get it, or its just not ready yet.shihn8 years ago#All working with react now. There was an issue wired-elements code: Here's a react demo: https://stackblitz.com/edit/wired-elements-react?file=index....
d4l3k8 years ago3 replies#There's something weird going on in Chrome. This link works in Firefox though with the webcomponents polyfill https://codesandbox.io/s/jn85y61kx9
shihn8 years ago1 reply#I believe it's a shadow dom issue. Firefox doesnt support Shadow DOM yet so a 'shady dom' is used by the polyfill
e1110778 years ago#This seems to be because you are accessing the DOM of the element from the constructor which is a no no. Here's a simple repro:https://stackblitz.com/edit/lit-element-react-attributes-loc...
swyx8 years ago#stuff like this is why i have trust issues with people who try to push webcomponents on me. I'm either not smart enough to understand why i dont get it, or its just not ready yet.
shihn8 years ago#All working with react now. There was an issue wired-elements code: Here's a react demo: https://stackblitz.com/edit/wired-elements-react?file=index....
https://stackblitz.com/edit/lit-element-react-attributes-loc...