fix: refs #8372 rollback
gitea/salix-front/pipeline/pr-dev There was a failure building this commit Details

This commit is contained in:
Jorge Penadés 2025-02-05 16:34:14 +01:00
parent 63133f6a18
commit b1d6f9dd9c
2 changed files with 3 additions and 2 deletions

View File

@ -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();
@ -44,6 +44,7 @@ export default {
return;
}
evt.preventDefault();
that.onSubmit();
}
});
},

View File

@ -288,7 +288,7 @@ defineExpose({
<QForm
ref="myForm"
v-if="formData"
@submit="save"
@submit.prevent="save"
@reset="reset"
class="q-pa-md"
:style="maxWidth ? 'max-width: ' + maxWidth : ''"