refs #7124 perf: avoid focus in VnFilterPanel
gitea/salix-front/pipeline/pr-dev This commit looks good
Details
gitea/salix-front/pipeline/pr-dev This commit looks good
Details
This commit is contained in:
parent
c4f7b5e7c0
commit
b11462e244
|
@ -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'));
|
||||||
|
|
|
@ -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>
|
||||||
|
|
Loading…
Reference in New Issue