web/elements: delegate requestUpdate in proxyform

Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
Jens Langhammer 2021-04-02 13:11:47 +02:00
parent c659e40df7
commit 0aa21c007a
1 changed files with 6 additions and 0 deletions

View File

@ -25,6 +25,12 @@ export class ProxyForm extends Form<unknown> {
return (this.shadowRoot?.firstElementChild as Form<unknown>).getSuccessMessage();
}
async requestUpdate(name?: PropertyKey | undefined, oldValue?: unknown): Promise<unknown> {
const result = await super.requestUpdate(name, oldValue);
await (this.shadowRoot?.firstElementChild as Form<unknown> | undefined)?.requestUpdate();
return result;
}
renderVisible(): TemplateResult {
let elementName = this.type;
if (this.type in this.typeMap) {