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 e62cf4c2f7
commit 49d719e5f6

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}>