mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-23 00:13:35 +01:00
fixing widget set readonly="true" in template and $readolys[$id] = false is still readonly
we need to unset readonly attribute, after setting it and before calling transformAttributes, which would set it again
This commit is contained in:
parent
f0dcc1685d
commit
b2d9e30b8d
@ -1330,6 +1330,7 @@ export function loadWebComponent(_nodeName : string, _template_node : Element|{[
|
|||||||
// Set read-only. Doesn't really matter if it's a ro widget, but otherwise it needs set
|
// Set read-only. Doesn't really matter if it's a ro widget, but otherwise it needs set
|
||||||
widget.readonly = readonly;
|
widget.readonly = readonly;
|
||||||
|
|
||||||
|
delete attrs.readonly;
|
||||||
widget.transformAttributes(attrs);
|
widget.transformAttributes(attrs);
|
||||||
|
|
||||||
// Children need to be loaded
|
// Children need to be loaded
|
||||||
|
Loading…
Reference in New Issue
Block a user