From ce922c8816ce48fec1b8516437839065ede17a03 Mon Sep 17 00:00:00 2001 From: nathan Date: Fri, 13 May 2022 09:38:23 -0600 Subject: [PATCH] Fix Et2Widget.createElementFromNode() used the wrong variable to determine widget class, and missed out on modifications --- api/js/etemplate/Et2Widget/Et2Widget.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/js/etemplate/Et2Widget/Et2Widget.ts b/api/js/etemplate/Et2Widget/Et2Widget.ts index 085d3d40e9..ae79e8d9bb 100644 --- a/api/js/etemplate/Et2Widget/Et2Widget.ts +++ b/api/js/etemplate/Et2Widget/Et2Widget.ts @@ -626,7 +626,7 @@ const Et2WidgetMixin = (superClass) => } let widget; - if(undefined == window.customElements.get(_node.nodeName.toLowerCase())) + if(undefined == window.customElements.get(_nodeName)) { // Get the constructor - if the widget is readonly, use the special "_ro" // constructor if it is available