mirror of
https://github.com/discourse/discourse.git
synced 2024-11-22 15:25:35 +08:00
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", () => {
|
||||
const element = document.getElementById(id);
|
||||
if (element) {
|
||||
const componentInfo = {
|
||||
element,
|
||||
component,
|
||||
data,
|
||||
};
|
||||
renderGlimmerService.add(componentInfo);
|
||||
}
|
||||
});
|
||||
|
||||
return `<${type} id="${id}" class="${classNames.join(" ")}"></${type}>`;
|
||||
|
|
Loading…
Reference in New Issue
Block a user