mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-08 00:54:15 +01:00
Fix Et2Description.ts appeared the same if you changed its value via JS
This commit is contained in:
parent
b88267160e
commit
b735b0f218
@ -132,6 +132,17 @@ export class Et2Description extends Et2Widget(LitElement) implements et2_IDetach
|
||||
this.requestUpdate('value', oldValue);
|
||||
}
|
||||
|
||||
requestUpdate(attribute, oldValue)
|
||||
{
|
||||
super.requestUpdate(...arguments);
|
||||
// Due to how we do the rendering into the light DOM (not sure it's right) we need this after
|
||||
// value change or it won't actually show up
|
||||
if(attribute == "value" && this.parentNode)
|
||||
{
|
||||
this.updateComplete.then(() => render(this._renderContent(), <HTMLElement><unknown>this));
|
||||
}
|
||||
}
|
||||
|
||||
_renderContent()
|
||||
{
|
||||
let render = null;
|
||||
|
Loading…
Reference in New Issue
Block a user