mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-02-17 02:41:02 +01:00
Et2SelectCategory: Fix loading with initial value did not get category color or icon in the displayed label
This commit is contained in:
parent
96e2b495e1
commit
7bb4332961
@ -127,6 +127,26 @@ export class Et2SelectCategory extends Et2StaticSelectMixin(Et2Select)
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Render select_options as child DOM Nodes
|
||||
*
|
||||
* Overridden here so we can re-do the displayed label after first load of select options.
|
||||
* Initial load order / lifecycle does not have all the options at the right time
|
||||
* @protected
|
||||
*/
|
||||
protected _renderOptions()
|
||||
{
|
||||
// @ts-ignore Doesn't know about Et2WidgetWithSelectMixin._renderOptions()
|
||||
return super._renderOptions().then(() =>
|
||||
{
|
||||
// @ts-ignore Doesn't know about SlSelect.menuItems
|
||||
if(this.menuItems.length > 0)
|
||||
{
|
||||
this.doLabelChange();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Use a custom tag for when multiple=true
|
||||
*
|
||||
|
Loading…
Reference in New Issue
Block a user