From e751f87173a28b6eae3c2bb83400e9e005976add Mon Sep 17 00:00:00 2001 From: Serhii Kulykov Date: Thu, 12 Dec 2024 11:40:56 +0200 Subject: [PATCH] fix: only set avatar img src attribute if property is defined (#8329) --- packages/avatar/src/vaadin-lit-avatar.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/avatar/src/vaadin-lit-avatar.js b/packages/avatar/src/vaadin-lit-avatar.js index 314154addc..b5dec489ff 100644 --- a/packages/avatar/src/vaadin-lit-avatar.js +++ b/packages/avatar/src/vaadin-lit-avatar.js @@ -5,6 +5,7 @@ */ import './vaadin-avatar-icons.js'; import { html, LitElement } from 'lit'; +import { ifDefined } from 'lit/directives/if-defined.js'; import { defineCustomElement } from '@vaadin/component-base/src/define.js'; import { ElementMixin } from '@vaadin/component-base/src/element-mixin.js'; import { PolylitMixin } from '@vaadin/component-base/src/polylit-mixin.js'; @@ -44,7 +45,7 @@ class Avatar extends AvatarMixin(ElementMixin(ThemableMixin(PolylitMixin(LitElem return html`