mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-18 11:58:24 +01:00
Fix widgets don't appear disabled when they are
This commit is contained in:
parent
f6687dd310
commit
ed2eb30b32
@ -123,9 +123,12 @@ export class Et2DropdownButton extends Et2widgetWithSelectMixin(Et2Button)
|
|||||||
{
|
{
|
||||||
return html`
|
return html`
|
||||||
<sl-button-group>
|
<sl-button-group>
|
||||||
<sl-button size="${egwIsMobile()?"large":"medium"}" id="main">${this.label}</sl-button>
|
<sl-button size="${egwIsMobile() ? "large" : "medium"}" id="main" ?disabled=${this.disabled}>
|
||||||
|
${this.label}
|
||||||
|
</sl-button>
|
||||||
<sl-dropdown placement="bottom-end" hoist>
|
<sl-dropdown placement="bottom-end" hoist>
|
||||||
<sl-button size="${egwIsMobile()?"large":"medium"}" slot="trigger" caret></sl-button>
|
<sl-button size="${egwIsMobile() ? "large" : "medium"}" slot="trigger" caret
|
||||||
|
?disabled=${this.disabled}></sl-button>
|
||||||
<sl-menu>
|
<sl-menu>
|
||||||
</sl-menu>
|
</sl-menu>
|
||||||
</sl-dropdown>
|
</sl-dropdown>
|
||||||
|
@ -756,6 +756,7 @@ export class et2_file extends et2_inputWidget
|
|||||||
{
|
{
|
||||||
this.options.readonly = _ro;
|
this.options.readonly = _ro;
|
||||||
this.span.toggleClass('et2_file_ro', _ro);
|
this.span.toggleClass('et2_file_ro', _ro);
|
||||||
|
this.span[0].readonly = _ro;
|
||||||
if (this.options.readonly)
|
if (this.options.readonly)
|
||||||
{
|
{
|
||||||
this.span.unbind('click');
|
this.span.unbind('click');
|
||||||
|
Loading…
Reference in New Issue
Block a user