Mixin performance #875
|
@ -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)
|
||||||
|
|
|
@ -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();
|
||||||
|
|
Loading…
Reference in New Issue