refs #6911 perf: use QForm instead classList
gitea/salix-front/pipeline/pr-dev This commit looks good Details

This commit is contained in:
Javier Segarra 2024-03-04 11:14:59 +01:00
parent 628d5453a8
commit 58dc4c253a
1 changed files with 4 additions and 2 deletions

View File

@ -1,4 +1,5 @@
import { QTable, QForm } from 'quasar';
import { QForm } from 'quasar';
import { getCurrentInstance } from 'vue';
export default {
inject: { QForm },
@ -6,7 +7,8 @@ export default {
components: { QForm },
extends: { QForm },
mounted: function () {
if (this.$el?.classList?.contains('q-form'))
const vm = getCurrentInstance();
if (vm.type.name === 'QForm')
if (this.$el?.id !== 'searchbarForm') {
let that = this;