From 62c10cb2df8cfc390e9cb1d3c8e5fa0f40e1bdac Mon Sep 17 00:00:00 2001 From: Lone Iversen <108085781+loivsen@users.noreply.github.com> Date: Fri, 24 May 2024 16:14:36 +0200 Subject: [PATCH] comment --- .../components/input-rich-media/input-rich-media.element.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Umbraco.Web.UI.Client/src/packages/media/media/components/input-rich-media/input-rich-media.element.ts b/src/Umbraco.Web.UI.Client/src/packages/media/media/components/input-rich-media/input-rich-media.element.ts index c3cb1fb231..bf128cf8e7 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/media/media/components/input-rich-media/input-rich-media.element.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/media/media/components/input-rich-media/input-rich-media.element.ts @@ -209,7 +209,7 @@ export class UmbInputRichMediaElement extends UUIFormControlMixin(UmbLitElement, const crops = value.crops; const mediaKey = value.unique; - // if the key changes, the card will update + // Note: If the mediaKey changes we will change the key which causes cards to update const key = mediaKey === item.mediaKey ? item.key : UmbId.new(); return { ...item, crops, mediaKey, focalPoint, key };