refs #7124 perf: avoid focus in VnFilterPanel
gitea/salix-front/pipeline/pr-dev This commit looks good Details

This commit is contained in:
Javier Segarra 2024-03-22 07:32:33 +01:00
parent c4f7b5e7c0
commit b11462e244
2 changed files with 2 additions and 4 deletions

View File

@ -4,9 +4,7 @@ export default {
mounted: function () { mounted: function () {
const vm = getCurrentInstance(); const vm = getCurrentInstance();
if (vm.type.name === 'QForm') if (vm.type.name === 'QForm')
if (!['searchbarForm'].includes(this.$el?.id)) { if (!['searchbarForm','filterPanelForm'].includes(this.$el?.id)) {
let that = this;
// AUTOFOCUS // AUTOFOCUS
const elementsArray = Array.from(this.$el.elements); const elementsArray = Array.from(this.$el.elements);
const firstInputElement = elementsArray.find(element => element.classList.contains('q-field__native')); const firstInputElement = elementsArray.find(element => element.classList.contains('q-field__native'));

View File

@ -164,7 +164,7 @@ function formatValue(value) {
</script> </script>
<template> <template>
<QForm @submit="search"> <QForm @submit="search" id="filterPanelForm">
<QList dense> <QList dense>
<QItem class="q-mt-xs"> <QItem class="q-mt-xs">
<QItemSection top> <QItemSection top>