From 8d57118e50b7091ec1e4dea3159ac6830aaf1d55 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jesper=20M=C3=B8ller=20Jensen?= <26099018+JesmoDev@users.noreply.github.com> Date: Thu, 7 Dec 2023 21:18:13 +1300 Subject: [PATCH] media type --- .../components/media-type-input/media-type-input.element.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Umbraco.Web.UI.Client/src/packages/media/media-types/components/media-type-input/media-type-input.element.ts b/src/Umbraco.Web.UI.Client/src/packages/media/media-types/components/media-type-input/media-type-input.element.ts index 1a3da5ed39..795232ba3e 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/media/media-types/components/media-type-input/media-type-input.element.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/media/media-types/components/media-type-input/media-type-input.element.ts @@ -61,6 +61,9 @@ export class UmbMediaTypeInputElement extends FormControlMixin(UmbLitElement) { @property() public set value(idsString: string) { + const isEmpty = idsString.trim().length === 0; + if (isEmpty) return; + // Its with full purpose we don't call super.value, as thats being handled by the observation of the context selection. this.selectedIds = idsString.split(/[ ,]+/); }