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}`); }