forked from extern/egroupware
Fix disabled attribute was not getting properly handled
In particular Admin -> File Manager -> VFS mounts and versioning had the "Delete all older versions..." block disabled when it shouldn't have been.
This commit is contained in:
parent
d67b0b1e66
commit
2c59914b74
@ -199,6 +199,7 @@ const Et2WidgetMixin = (superClass) =>
|
|||||||
{
|
{
|
||||||
super(...args);
|
super(...args);
|
||||||
|
|
||||||
|
this.disabled = false;
|
||||||
this.addEventListener("click", this._handleClick.bind(this));
|
this.addEventListener("click", this._handleClick.bind(this));
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -267,14 +268,7 @@ const Et2WidgetMixin = (superClass) =>
|
|||||||
*/
|
*/
|
||||||
set_disabled(value : boolean)
|
set_disabled(value : boolean)
|
||||||
{
|
{
|
||||||
if(value)
|
this.disabled = value;
|
||||||
{
|
|
||||||
this.setAttribute("disabled", "")
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
this.removeAttribute("disabled");
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -1188,7 +1182,7 @@ function transformAttributes(widget, mgr : et2_arrayMgr, attributes)
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Set as attribute or property, as appropriate
|
// Set as attribute or property, as appropriate
|
||||||
if(widget.getAttributeNames().indexOf(attribute) >= 0 || property.reflect)
|
if(widget.getAttributeNames().indexOf(attribute) >= 0/* || property.reflect*/)
|
||||||
{
|
{
|
||||||
// Set as attribute (reflected in DOM)
|
// Set as attribute (reflected in DOM)
|
||||||
widget.setAttribute(attribute, attrValue);
|
widget.setAttribute(attribute, attrValue);
|
||||||
|
Loading…
Reference in New Issue
Block a user