From ac589a86266166376250a61c2597febc3c32c698 Mon Sep 17 00:00:00 2001 From: jorgep Date: Mon, 13 Jan 2025 12:21:33 +0100 Subject: [PATCH] fix: refs #8110 prevent form submit --- src/boot/qformMixin.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/boot/qformMixin.js b/src/boot/qformMixin.js index 187ca6dbc..97d80c670 100644 --- a/src/boot/qformMixin.js +++ b/src/boot/qformMixin.js @@ -31,7 +31,7 @@ export default { console.error(error); } form.addEventListener('keyup', function (evt) { - if (evt.key === 'Enter') { + if (evt.key === 'Enter' && !that.$attrs['prevent-submit']) { const input = evt.target; if (input.type == 'textarea' && evt.shiftKey) { evt.preventDefault();