From 652e84644ba44a358618fdac4874d85561bae809 Mon Sep 17 00:00:00 2001 From: nathan Date: Mon, 15 Aug 2022 10:35:12 -0600 Subject: [PATCH] Et2Widget: 'attributes' is read-only in webcomponent, so assign it in to avoid errors This is used by some kanban column stuff --- api/js/etemplate/Et2Widget/Et2Widget.ts | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/api/js/etemplate/Et2Widget/Et2Widget.ts b/api/js/etemplate/Et2Widget/Et2Widget.ts index d1c5c624a5..9bcc9f484b 100644 --- a/api/js/etemplate/Et2Widget/Et2Widget.ts +++ b/api/js/etemplate/Et2Widget/Et2Widget.ts @@ -1352,6 +1352,16 @@ function transformAttributes(widget, mgr : et2_arrayMgr, attributes) // Special case attributes + if(attributes.attributes) + { + // Attributes in content? "attributes" is read-only in webComponent + let mgr_attributes = mgr.getEntry(attributes.attributes); + delete attributes.attributes; + if(mgr_attributes) + { + Object.assign(attributes, ...mgr_attributes); + } + } if(attributes.width) { widget.style.setProperty("width", attributes.width);