Commit 83c884e6 authored by Lukasz Starosta's avatar Lukasz Starosta

Render only once with proper state

parent ecac8737
Pipeline #191643238 passed with stages
in 6 minutes and 26 seconds
{
"name": "@tecnojest/widget-base",
"version": "1.4.41",
"version": "1.4.42",
"lockfileVersion": 1,
"requires": true,
"dependencies": {
......
{
"name": "@tecnojest/widget-base",
"author": "Tecnojest srl https://www.invidea.it",
"version": "1.4.41",
"version": "1.4.42",
"publishConfig": {
"registry": "https://npm.invidea.it"
},
......
......@@ -168,9 +168,8 @@ export default class EmbeddableWidget {
}
}
if (remount) {
EmbeddableWidget.Engine.render(component, el);
}
// Render at the end after the proper state is in the widget
EmbeddableWidget.Engine.render(component, el);
}
static getOptions(): Partial<Options> {
......@@ -473,7 +472,6 @@ export default class EmbeddableWidget {
});
}
EmbeddableWidget.Engine.render(component, el);
if (Footer) el.appendChild(Footer);
if (Tooltip) el.appendChild(Tooltip);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment