Et2DropdownButton: If readonly, display / render nothing

does not affect disabled, which still displays as disabled
This commit is contained in:
nathan 2023-02-28 11:12:50 -07:00
parent fe2f36d52f
commit a491983694

View File

@ -121,6 +121,10 @@ export class Et2DropdownButton extends Et2widgetWithSelectMixin(Et2Button)
render()
{
if(this.readonly)
{
return '';
}
return html`
<sl-button-group>
<sl-button size="${egwIsMobile() ? "large" : "medium"}" id="main" ?disabled=${this.disabled}>