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:
ralf 2022-08-22 18:36:58 +02:00
parent f0dcc1685d
commit b2d9e30b8d

View File

@ -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
widget.readonly = readonly;
delete attrs.readonly;
widget.transformAttributes(attrs);
// Children need to be loaded