mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-28 02:43:22 +01:00
Et2Select: Better fix for 80ad5dddb2
which caused problems with selecting options in Et2SelectEmail
This commit is contained in:
parent
688de6d52c
commit
c7764ebebe
@ -511,17 +511,20 @@ export class Et2Select extends Et2WithSearchMixin(Et2WidgetWithSelect)
|
|||||||
this.updateComplete.then(() =>
|
this.updateComplete.then(() =>
|
||||||
{
|
{
|
||||||
this.fix_bad_value();
|
this.fix_bad_value();
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
update(changedProperties : PropertyValues)
|
||||||
|
{
|
||||||
|
super.update(changedProperties);
|
||||||
|
if(changedProperties.has("select_options") && changedProperties.has("value"))
|
||||||
|
{
|
||||||
// Force select to stay in sync, avoids value not shown when select options arrive late
|
// Force select to stay in sync, avoids value not shown when select options arrive late
|
||||||
if(this.select && this.value !== null && typeof this.value !== "undefined")
|
if(this.select && this.value !== null && typeof this.value !== "undefined")
|
||||||
{
|
{
|
||||||
this.select.value = this.value;
|
this.select.value = this.value;
|
||||||
}
|
}
|
||||||
});
|
|
||||||
}
|
|
||||||
if(changedProperties.has("select_options") && changedProperties.has("value"))
|
|
||||||
{
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user