From 58dc4c253a848b9beca7d491e41e270101f20c29 Mon Sep 17 00:00:00 2001 From: Javier Segarra Date: Mon, 4 Mar 2024 11:14:59 +0100 Subject: [PATCH] refs #6911 perf: use QForm instead classList --- src/boot/qformMixin.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/boot/qformMixin.js b/src/boot/qformMixin.js index daca84eef..5e06497c5 100644 --- a/src/boot/qformMixin.js +++ b/src/boot/qformMixin.js @@ -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;