From a80be9b342031ecc700732b86a66c132906df52d Mon Sep 17 00:00:00 2001 From: Lone Iversen <108085781+loivsen@users.noreply.github.com> Date: Mon, 11 Dec 2023 17:51:54 +0100 Subject: [PATCH] alias on isNew workspace --- .../templates/workspace/template-workspace-editor.element.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/Umbraco.Web.UI.Client/src/packages/templating/templates/workspace/template-workspace-editor.element.ts b/src/Umbraco.Web.UI.Client/src/packages/templating/templates/workspace/template-workspace-editor.element.ts index 22f4d43501..44c06c7245 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/templating/templates/workspace/template-workspace-editor.element.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/templating/templates/workspace/template-workspace-editor.element.ts @@ -78,7 +78,7 @@ export class UmbTemplateWorkspaceEditorElement extends UmbLitElement { this.inputQuery$.pipe(debounceTime(250)).subscribe((nameInputValue) => { this.#templateWorkspaceContext?.setName(nameInputValue); - if (this.#isNew && !this._alias) this.#templateWorkspaceContext?.setAlias(camelCase(nameInputValue)); + if (this.#isNew) this.#templateWorkspaceContext?.setAlias(camelCase(nameInputValue)); }); }); } @@ -90,6 +90,7 @@ export class UmbTemplateWorkspaceEditorElement extends UmbLitElement { } #onAliasInput(event: Event) { + event.stopPropagation(); const target = event.target as UUIInputElement; const value = target.value as string; this.#templateWorkspaceContext?.setAlias(value); @@ -188,7 +189,7 @@ export class UmbTemplateWorkspaceEditorElement extends UmbLitElement { .value=${this._name} @input=${this.#onNameInput} label="template name"> - +