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

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) {