From e2df9cbd0a409d35cf724586a4a2c8ace768ec5d Mon Sep 17 00:00:00 2001 From: Sam Catlow Date: Fri, 13 Nov 2026 14:19:29 +1100 Subject: [PATCH] fix(ui): workflow editor fields no longer drop input (#1947) --- ui/src/workflows/SpecList.vue | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/ui/src/workflows/SpecList.vue b/ui/src/workflows/SpecList.vue index 144c80798..1821eb615 100644 --- a/ui/src/workflows/SpecList.vue +++ b/ui/src/workflows/SpecList.vue @@ -26,6 +26,8 @@ function edit(index: number, name: string, spec: Spec): void { // A rename to blank or onto another entry's name would drop an entry, so it is // refused: the field goes back to the old name and says why. const nameError = ref<{ index: number; message: string } | null>(null); +// The input keeps what was typed; remounting the rows shows the kept name. +const resets = ref(0); function rename(index: number, input: HTMLInputElement, spec: Spec): void { const name = input.value.trim(); const current = list.value[index]?.[0] ?? ""; @@ -36,7 +38,7 @@ function rename(index: number, input: HTMLInputElement, spec: Spec): void { : ""; if (message) { nameError.value = { index, message }; - input.value = current; + resets.value++; return; } nameError.value = null; @@ -57,7 +59,7 @@ function add(): void {
-
+