Re:Show HN: Wired-elements – UI web components with a hand d...
by d4l3k on Friday May 25, 2018 @12:37AM
(#17150649)
There's something weird going on in Chrome. This link works in Firefox though with the webcomponents polyfill https://codesandbox.io/s/jn85y61kx9
[ Parent
| on HN ]
Re:Show HN: Wired-elements – UI web components with a hand d...
by shihn on Friday May 25, 2018 @11:39PM
(#17160063)
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....
Re:Show HN: Wired-elements – UI web components with a hand d...
by shihn on Friday May 25, 2018 @03:48AM
(#17151476)
I believe it's a shadow dom issue. Firefox doesnt support Shadow DOM yet so a 'shady dom' is used by the polyfill
Re:Show HN: Wired-elements – UI web components with a hand d...
by e111077 on Friday May 25, 2018 @06:52PM
(#17158799)
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...