From 09b1e1702c9dcff3537c20e66b8b134b5e9055c6 Mon Sep 17 00:00:00 2001 From: AustinMroz Date: Thu, 16 Oct 2025 18:45:47 -0700 Subject: [PATCH] Skip rename operation on focus lost. (#6052) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit When renaming a workflow through the breadcrumb bar. It is intended to complete the rename operation if the user clicks away from the text input. However, completing the text input by pressing enter can cause the rename operation to occur twice: On pressing enter and on loss of focus. When this occurs, the second rename causes, an error to be raised because renaming a workflow to the same name is not allowed. Worse, a user should be able to cancel a rename by pressing escape, but this still causes the "loss of focus" event to fire and rename the workflow anyways. As a simple fix to both of these, this PR disables rename on loss of focus. A rename only occurs when the user completes a rename operation with the enter key. Resolves #6051 ┆Issue is synchronized with this [Notion page](https://www.notion.so/PR-6052-Skip-rename-operation-on-focus-lost-28c6d73d3650815d9a5fecd8567d4299) by [Unito](https://www.unito.io) --- src/components/breadcrumb/SubgraphBreadcrumbItem.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/breadcrumb/SubgraphBreadcrumbItem.vue b/src/components/breadcrumb/SubgraphBreadcrumbItem.vue index 602d077de..5aa8cf2e2 100644 --- a/src/components/breadcrumb/SubgraphBreadcrumbItem.vue +++ b/src/components/breadcrumb/SubgraphBreadcrumbItem.vue @@ -38,7 +38,7 @@ ref="itemInputRef" v-model="itemLabel" class="fixed z-10000 px-2 py-2 text-[.8rem]" - @blur="inputBlur(true)" + @blur="inputBlur(false)" @click.stop @keydown.enter="inputBlur(true)" @keydown.esc="inputBlur(false)"