From c3c51e01d4c60132823baa417da128ec9cbab66a Mon Sep 17 00:00:00 2001 From: Javier Segarra Date: Wed, 13 Nov 2024 12:27:33 +0100 Subject: [PATCH] perf: qFormMixin --- src/boot/mainShortcutMixin.js | 1 - src/boot/qformMixin.js | 5 +++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/boot/mainShortcutMixin.js b/src/boot/mainShortcutMixin.js index 2f76ae858..8e5f147db 100644 --- a/src/boot/mainShortcutMixin.js +++ b/src/boot/mainShortcutMixin.js @@ -5,7 +5,6 @@ let isNotified = false; export default { created: function () { - console.error('mainShortcutMixin created'); const router = useRouter(); const keyBindingMap = routes .filter((route) => route.meta.keyBinding) diff --git a/src/boot/qformMixin.js b/src/boot/qformMixin.js index d859f77d9..c7e2de69d 100644 --- a/src/boot/qformMixin.js +++ b/src/boot/qformMixin.js @@ -5,12 +5,13 @@ function focusFirstInput(input) { export default { mounted: function () { const that = this; + const form = document.querySelector('.q-form#formModel'); if (!form) return; try { // Login - const inputsFormCard = document.querySelectorAll( - '.q-form#formModel input:not([disabled]):not([type="checkbox"])' + const inputsFormCard = form.querySelectorAll( + `input:not([disabled]):not([type="checkbox"])` ); if (inputsFormCard.length) { // .focus();