mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-05 05:29:13 +01:00
Do not proceed sizing for avatar widget if it's not in an accepted format
This commit is contained in:
parent
9fc4c64a90
commit
fd5160e9fe
@ -127,7 +127,7 @@ export class Et2Avatar extends Et2Widget(SlAvatar) implements et2_IDetachedDOM
|
|||||||
}
|
}
|
||||||
if (changedProperties.has("size"))
|
if (changedProperties.has("size"))
|
||||||
{
|
{
|
||||||
if(this.size)
|
if(this.size && this.size.match(/\d/))
|
||||||
{
|
{
|
||||||
this.getDOMNode().setAttribute('style', `--size:${this.size}`);
|
this.getDOMNode().setAttribute('style', `--size:${this.size}`);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user