From c9e8dc73447aed07b2e9dad55d9ac67c3f83dd0d Mon Sep 17 00:00:00 2001 From: Mads Rasmussen Date: Wed, 31 Jul 2024 14:08:20 +0200 Subject: [PATCH] always allow editing invariant properties --- .../packages/core/property/property/property.context.ts | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property/property/property.context.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property/property/property.context.ts index d80283f5a9..e5e204790c 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/property/property/property.context.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/property/property/property.context.ts @@ -111,6 +111,15 @@ export class UmbPropertyContext extends UmbContextBase { + // always allow invariant properties to be editable + const isInvariant = !this.#variantId?.getValue()?.culture; + + // always allow editing invariant properties + if (isInvariant) { + this.#isReadOnly.setValue(false); + return; + } + this.#isReadOnly.setValue(value); }); }