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 {
created: function () {
console.error('mainShortcutMixin created');
const router = useRouter();
const keyBindingMap = routes
.filter((route) => route.meta.keyBinding)

View File

@ -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();