hotfix-quitSaveOnEnter #1069

Merged
jsegarra merged 5 commits from hotfix-quitSaveOnEnter into master 2024-12-11 21:54:02 +00:00
3 changed files with 4 additions and 1 deletions
Showing only changes of commit 542ec13cfe - Show all commits

View File

@ -8,7 +8,7 @@ export default {
// TODO: AUTOFOCUS IS NOT FOCUSING
const that = this;
this.$el.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();

View File

@ -285,6 +285,7 @@ defineExpose({
</script>
<template>
<div class="column items-center full-width">
{{ $attrs }}
jorgep marked this conversation as resolved Outdated

Queremos mostrar los attrs?

Queremos mostrar los attrs?
<QForm
ref="myForm"
v-if="formData"
@ -293,6 +294,7 @@ defineExpose({
class="q-pa-md"
:style="maxWidth ? 'max-width: ' + maxWidth : ''"
id="formModel"
:prevent-submit="$attrs['prevent-submit']"
>
<QCard>
<slot

View File

@ -189,6 +189,7 @@ async function getAmountPaid() {
:url-create="urlCreate"
:mapper="onBeforeSave"
@on-data-saved="onDataSaved"
:prevent-submit="true"
>
<template #form="{ data, validate }">
<span ref="closeButton" class="row justify-end close-icon" v-close-popup>