Mixin performance #875

Open
jsegarra wants to merge 11 commits from performance_mixins into dev
2 changed files with 3 additions and 3 deletions
Showing only changes of commit c3c51e01d4 - Show all commits

View File

@ -5,7 +5,6 @@ let isNotified = false;
export default { export default {
created: function () { created: function () {
console.error('mainShortcutMixin created');
const router = useRouter(); const router = useRouter();
const keyBindingMap = routes const keyBindingMap = routes
.filter((route) => route.meta.keyBinding) .filter((route) => route.meta.keyBinding)

View File

@ -5,12 +5,13 @@ function focusFirstInput(input) {
export default { export default {
mounted: function () { mounted: function () {
const that = this; const that = this;
const form = document.querySelector('.q-form#formModel'); const form = document.querySelector('.q-form#formModel');
if (!form) return; if (!form) return;
try { try {
// Login // Login
const inputsFormCard = document.querySelectorAll( const inputsFormCard = form.querySelectorAll(
'.q-form#formModel input:not([disabled]):not([type="checkbox"])' `input:not([disabled]):not([type="checkbox"])`
); );
if (inputsFormCard.length) { if (inputsFormCard.length) {
// .focus(); // .focus();