From f68fdb03bcf8178327a02e3ab25b15714663f0d4 Mon Sep 17 00:00:00 2001 From: Jamie V Date: Mon, 6 Jan 2025 13:59:25 -0800 Subject: [PATCH] making sure we dont save invalid forms --- src/api/forms/components/FormProperties.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/api/forms/components/FormProperties.vue b/src/api/forms/components/FormProperties.vue index f29370f42eb..efe219a803f 100644 --- a/src/api/forms/components/FormProperties.vue +++ b/src/api/forms/components/FormProperties.vue @@ -158,7 +158,7 @@ export default { this.$emit('on-save'); }, handleKeyDown({ key }) { - if (key === 'Enter') { + if (key === 'Enter' && !this.isInvalid) { this.onSave(); } else if (key === 'Escape') { this.onCancel();