mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-27 18:33:39 +01:00
Do not proceed sizing for avatar widget if it's not in an accepted format
This commit is contained in:
parent
e280f8cd2c
commit
6a67fa85cd
@ -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}`);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user