From dab965c775517e025e640cf5b12e3e2ca0a92a6d Mon Sep 17 00:00:00 2001 From: 3351163616 <3351163616@qq.com> Date: Tue, 14 Apr 2026 23:41:56 +0800 Subject: [PATCH] fix: prevent numeric input from resetting to zero on blur without edit MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit When a numeric input field was focused but not edited, the blur handler called toNumber(null) which returned 0 via parseFloat(null) → NaN → 0. Now we skip emitting the update when numericTemp is null (no edits made). --- dashboard/src/components/shared/ConfigItemRenderer.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dashboard/src/components/shared/ConfigItemRenderer.vue b/dashboard/src/components/shared/ConfigItemRenderer.vue index 0cdddcde61..58e41f3ab7 100644 --- a/dashboard/src/components/shared/ConfigItemRenderer.vue +++ b/dashboard/src/components/shared/ConfigItemRenderer.vue @@ -161,7 +161,7 @@