DEV: Don't attempt to render to empty element in RawRenderGlimmer (#23803)

This commit is contained in:
Mark VanLandingham 2023-10-05 13:23:49 -05:00 committed by GitHub
parent d64d053f4d
commit affcb44557
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -41,12 +41,14 @@ export default function rawRenderGlimmer(owner, renderInto, component, data) {
schedule("afterRender", () => {
const element = document.getElementById(id);
if (element) {
const componentInfo = {
element,
component,
data,
};
renderGlimmerService.add(componentInfo);
}
});
return `<${type} id="${id}" class="${classNames.join(" ")}"></${type}>`;