From fd5160e9fe959820738822c8c0f8662e6f72e250 Mon Sep 17 00:00:00 2001 From: hadi Date: Mon, 4 Dec 2023 11:38:23 +0100 Subject: [PATCH] Do not proceed sizing for avatar widget if it's not in an accepted format --- api/js/etemplate/Et2Avatar/Et2Avatar.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/js/etemplate/Et2Avatar/Et2Avatar.ts b/api/js/etemplate/Et2Avatar/Et2Avatar.ts index 8912a1abd0..66413c31f7 100644 --- a/api/js/etemplate/Et2Avatar/Et2Avatar.ts +++ b/api/js/etemplate/Et2Avatar/Et2Avatar.ts @@ -127,7 +127,7 @@ export class Et2Avatar extends Et2Widget(SlAvatar) implements et2_IDetachedDOM } if (changedProperties.has("size")) { - if(this.size) + if(this.size && this.size.match(/\d/)) { this.getDOMNode().setAttribute('style', `--size:${this.size}`); }