From 175b4200334ec293f7b09e2e5ac4281bb6a5b47d 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:31 +1300 Subject: [PATCH] user input --- .../user/user/components/user-input/user-input.element.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Umbraco.Web.UI.Client/src/packages/user/user/components/user-input/user-input.element.ts b/src/Umbraco.Web.UI.Client/src/packages/user/user/components/user-input/user-input.element.ts index 74d25d8799..4756a82e6b 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/user/user/components/user-input/user-input.element.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/user/user/components/user-input/user-input.element.ts @@ -61,6 +61,9 @@ export class UmbUserInputElement 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(/[ ,]+/); }