diff --git a/src/components/html/HTML.js b/src/components/html/HTML.js
index cd4838da13..9ff661a67e 100644
--- a/src/components/html/HTML.js
+++ b/src/components/html/HTML.js
@@ -92,8 +92,17 @@ export default class HTMLComponent extends Component {
return super.render(this.renderContent());
}
+ get dataReady() {
+ return this.root?.submissionReady || Promise.resolve();
+ }
+
attach(element) {
this.loadRefs(element, { html: 'single' });
+ this.dataReady.then(() => {
+ if (this.element) {
+ this.setContent(this.elemet, this.content);
+ }
+ });
return super.attach(element);
}
}