0
0
Fork 0

refs #6911 perf: use QForm instead classList

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 { export default {
inject: { QForm }, inject: { QForm },
@ -6,7 +7,8 @@ export default {
components: { QForm }, components: { QForm },
extends: { QForm }, extends: { QForm },
mounted: function () { mounted: function () {
if (this.$el?.classList?.contains('q-form')) const vm = getCurrentInstance();
if (vm.type.name === 'QForm')
if (this.$el?.id !== 'searchbarForm') { if (this.$el?.id !== 'searchbarForm') {
let that = this; let that = this;