Open AngelMunoz opened 3 years ago
also this might affect the event binding for the F# DSL since custom-events sent by web components may have any arbitrary name like on-my-click-event
and they can be CustomEvents not just Events which differ on providing data via a .details
property
Do you run client-only project or server?
I think when I was testing this it was on the client, but it should not matter on the server (specially when pre-rendering is on) these web components are picked up by the browser itself so I'd expect the final content to include the tag as is
But for events and other stuff... I think it wouldn't be as straight forward as it seems due blazor event handling docs
Hello there!
I was working on a couple web component samples (using Lit) and using HTML templates when I loaded my web component inside an html template it doesn't get added in the DOM but after saving the file (and triggering the hot-reload mechanism) the web component gets attached to the dom not sure what's going on but I suspect that since it's not part of the standard html elements it gets ignored by the engine
here it is after saving the file
since web components "work as any other html tag" this might be troublesome in the future once design systems or in-house design systems (made with web components) become more mainstream
I made a repository showing this https://github.com/AngelMunoz/WCSample