diff --git a/src/boot/mainShortcutMixin.js b/src/boot/mainShortcutMixin.js index 8e5f147db..481077e37 100644 --- a/src/boot/mainShortcutMixin.js +++ b/src/boot/mainShortcutMixin.js @@ -25,8 +25,6 @@ export default { const handleKeyUp = (event) => { const { ctrlKey, altKey } = event; - - // Resetea la bandera cuando se sueltan las teclas ctrl o alt if (!ctrlKey || !altKey) { isNotified = false; } diff --git a/src/boot/qformMixin.js b/src/boot/qformMixin.js index c7e2de69d..8a75e1af7 100644 --- a/src/boot/qformMixin.js +++ b/src/boot/qformMixin.js @@ -9,38 +9,25 @@ export default { const form = document.querySelector('.q-form#formModel'); if (!form) return; try { - // Login const inputsFormCard = form.querySelectorAll( `input:not([disabled]):not([type="checkbox"])` ); if (inputsFormCard.length) { - // .focus(); - // observerInstance.disconnect(); - // return; focusFirstInput(inputsFormCard[0]); } - // VnNotes const textareas = document.querySelectorAll( 'textarea:not([disabled]), [contenteditable]:not([disabled])' ); if (textareas.length) { - // textareas[textareas.length - 1].focus(); - // observerInstance.disconnect(); - // return; focusFirstInput(textareas[textareas.length - 1]); } - // if (!inputs || inputs.length === 0) return; const inputs = document.querySelectorAll( 'form#formModel input:not([disabled]):not([type="checkbox"])' ); const input = inputs[0]; if (!input) return; - // if (input.type === 'textarea' || input.form) { - // AUTOFOCUS focusFirstInput(input); - // input.focus(); - // observerInstance.disconnect(); } catch (error) { console.error(error); } @@ -61,5 +48,5 @@ export default { that.onSubmit(); } }); - }, // mounted + }, }; diff --git a/src/components/CreateBankEntityForm.vue b/src/components/CreateBankEntityForm.vue index 17dee33a0..a42be6ef8 100644 --- a/src/components/CreateBankEntityForm.vue +++ b/src/components/CreateBankEntityForm.vue @@ -44,6 +44,7 @@ onMounted(async () => {