From 44c8b2f372ec6d2d78dabb7a2e57709eaef3b2fb Mon Sep 17 00:00:00 2001 From: nathan Date: Tue, 19 Apr 2022 09:31:10 -0600 Subject: [PATCH] Et2Widget: More complete handling of child object styles property when it is missing --- 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 802a9d2b98..7716c44c4f 100644 --- a/api/js/etemplate/Et2Widget/Et2Widget.ts +++ b/api/js/etemplate/Et2Widget/Et2Widget.ts @@ -87,7 +87,7 @@ const Et2WidgetMixin = (superClass) => static get styles() { return [ - ...(super.styles ? super.styles : []), + ...(super.styles ? (Symbol.iterator in Object(super.styles) ? super.styles : [super.styles]) : []), css` :host([disabled]) { display: none;