From 2d753cb6bc8f5fa85bf96eb4b4c071964d5273fb Mon Sep 17 00:00:00 2001 From: Paul Moeller Date: Thu, 5 Mar 2026 23:12:01 +0000 Subject: [PATCH] fix #198 prevent single VText from autosubmitting --- ui/src/components/widget/VText.vue | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ui/src/components/widget/VText.vue b/ui/src/components/widget/VText.vue index bbe595a..2478dcf 100644 --- a/ui/src/components/widget/VText.vue +++ b/ui/src/components/widget/VText.vue @@ -48,6 +48,9 @@ if ($event.key == 'Enter' && ! isInvalid.value) { props.ctx[props.field].value = parsedValue.value; props.ctx.serverAction(props.field, parsedValue.value); + // prevent default HTML behavior: a form with a single text input field + // will automatically submit when the user presses the Enter key in that field + $event.preventDefault(); } };