API: Fix incorrect updateComplete override

This commit is contained in:
nathan 2023-06-05 10:43:10 -06:00
parent 572cc61315
commit 4e957510bc
2 changed files with 13 additions and 2 deletions

View File

@ -154,14 +154,15 @@ export class Et2Link extends ExposeMixin<Et2Widget>(Et2Widget(LitElement)) imple
super.connectedCallback();
}
async _getUpdateComplete()
async getUpdateComplete()
{
await super._getUpdateComplete();
const result = await super.getUpdateComplete();
if(this._titlePromise)
{
// Wait for the title to arrive before we say we're done
await this._titlePromise;
}
return result;
}
/**

View File

@ -118,6 +118,16 @@ export class Et2LinkString extends Et2Widget(LitElement) implements et2_IDetache
this.__showDeleted = false;
}
async getUpdateComplete()
{
const result = await super.getUpdateComplete();
if(this._loadingPromise)
{
// Wait for the values to arrive before we say we're done
await this._loadingPromise;
}
return result;
}
/**
* Set the value of the list