Sekoia icon indicating copy to clipboard operation
Sekoia copied to clipboard

Add support for Components w/o specified element

Open monokee opened this issue 5 years ago • 1 comments
trafficstars

Check if element exists, else use empty template.

Module.template = document.createRange().createContextualFragment(
    `<cue-template>${element ? element.trim() : ''}</cue-template>`
).firstChild;

This allows for external definition of element markup (HTML, SSR...)

monokee avatar Jan 12 '20 19:01 monokee

Implemented in 1.04-beta

monokee avatar Jan 18 '20 17:01 monokee