From db8d099e42f7338e65ad4f3cdcfd8a77a5c32c7a Mon Sep 17 00:00:00 2001 From: Abhinav Raut Date: Tue, 21 Apr 2026 20:30:29 +0530 Subject: [PATCH] Prevent Enter key from submitting automation rule form --- frontend/apps/main/src/features/admin/automation/RuleBox.vue | 3 +++ .../main/src/views/admin/automations/CreateOrEditRule.vue | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/frontend/apps/main/src/features/admin/automation/RuleBox.vue b/frontend/apps/main/src/features/admin/automation/RuleBox.vue index cb0cada7..1acfd483 100644 --- a/frontend/apps/main/src/features/admin/automation/RuleBox.vue +++ b/frontend/apps/main/src/features/admin/automation/RuleBox.vue @@ -89,6 +89,7 @@ v-if="inputType(index) === 'text'" v-model="rule.value" @update:modelValue="(value) => handleValueChange(value, index)" + @keydown.enter.prevent /> @@ -98,6 +99,7 @@ v-if="inputType(index) === 'number'" v-model="rule.value" @update:modelValue="(value) => handleValueChange(value, index)" + @keydown.enter.prevent /> @@ -141,6 +143,7 @@ v-if="inputType(index) === 'date'" v-model="rule.value" @update:modelValue="(value) => handleValueChange(value, index)" + @keydown.enter.prevent /> diff --git a/frontend/apps/main/src/views/admin/automations/CreateOrEditRule.vue b/frontend/apps/main/src/views/admin/automations/CreateOrEditRule.vue index 3ed16f52..129bc7e6 100644 --- a/frontend/apps/main/src/views/admin/automations/CreateOrEditRule.vue +++ b/frontend/apps/main/src/views/admin/automations/CreateOrEditRule.vue @@ -30,7 +30,7 @@ {{ $t('globals.terms.name') }} - + @@ -40,7 +40,7 @@ {{ $t('globals.terms.description') }} - +