From b11462e244d61b7857345233155284044845857b Mon Sep 17 00:00:00 2001 From: Javier Segarra Date: Fri, 22 Mar 2024 07:32:33 +0100 Subject: [PATCH] refs #7124 perf: avoid focus in VnFilterPanel --- src/boot/qformMixin.js | 4 +--- src/components/ui/VnFilterPanel.vue | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/boot/qformMixin.js b/src/boot/qformMixin.js index 71f5e9f6d..66e3de4f5 100644 --- a/src/boot/qformMixin.js +++ b/src/boot/qformMixin.js @@ -4,9 +4,7 @@ export default { mounted: function () { const vm = getCurrentInstance(); if (vm.type.name === 'QForm') - if (!['searchbarForm'].includes(this.$el?.id)) { - let that = this; - + if (!['searchbarForm','filterPanelForm'].includes(this.$el?.id)) { // AUTOFOCUS const elementsArray = Array.from(this.$el.elements); const firstInputElement = elementsArray.find(element => element.classList.contains('q-field__native')); diff --git a/src/components/ui/VnFilterPanel.vue b/src/components/ui/VnFilterPanel.vue index 722462d4a..96d097191 100644 --- a/src/components/ui/VnFilterPanel.vue +++ b/src/components/ui/VnFilterPanel.vue @@ -164,7 +164,7 @@ function formatValue(value) {