Commit 9cc1bb00 authored by Daniele Berardo's avatar Daniele Berardo

Merge branch 'lib/render-with-proper-state' into 'master'

Render only once with proper state

See merge request !39
parents caac755f 83c884e6
Pipeline #191752352 passed with stages
in 13 minutes and 58 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