Et2Dialog: Try waiting until after update is complete to avoid an error loading the template in Safari

This commit is contained in:
nathan 2022-12-12 14:43:47 -07:00
parent 65a7abeca2
commit 27573f6d83

View File

@ -688,7 +688,8 @@ export class Et2Dialog extends Et2Widget(SlotMixin(SlDialog))
super.updated(changedProperties);
if(changedProperties.has("template"))
{
this._loadTemplate();
// Wait until update is finished to avoid an error in Safari
this.updateComplete.then(() => this._loadTemplate());
}
if(changedProperties.has("buttons"))
{