DEV: Don't attempt to render to empty element in RawRenderGlimmer (#23803)
This commit is contained in:
parent
d64d053f4d
commit
affcb44557
|
@ -41,12 +41,14 @@ export default function rawRenderGlimmer(owner, renderInto, component, data) {
|
||||||
|
|
||||||
schedule("afterRender", () => {
|
schedule("afterRender", () => {
|
||||||
const element = document.getElementById(id);
|
const element = document.getElementById(id);
|
||||||
const componentInfo = {
|
if (element) {
|
||||||
element,
|
const componentInfo = {
|
||||||
component,
|
element,
|
||||||
data,
|
component,
|
||||||
};
|
data,
|
||||||
renderGlimmerService.add(componentInfo);
|
};
|
||||||
|
renderGlimmerService.add(componentInfo);
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
return `<${type} id="${id}" class="${classNames.join(" ")}"></${type}>`;
|
return `<${type} id="${id}" class="${classNames.join(" ")}"></${type}>`;
|
||||||
|
|
Loading…
Reference in New Issue