From 989dcd46132e38d7e7691e71cb57c5e52416bcd2 Mon Sep 17 00:00:00 2001 From: "Jose A. Cabaneros" Date: Thu, 1 Aug 2024 17:28:38 +0200 Subject: [PATCH 1/7] fix(attrs): remove $attrs binding when is no needed --- packages/x-components/src/components/display-emitter.vue | 3 +-- .../x-components/src/components/modals/base-events-modal.vue | 1 - packages/x-components/src/components/modals/base-id-modal.vue | 1 - packages/x-components/src/components/modals/main-modal.vue | 1 - .../x-components/src/components/result/base-result-rating.vue | 1 + packages/x-components/src/views/home/Home.vue | 3 +++ .../x-modules/history-queries/components/history-queries.vue | 2 -- .../src/x-modules/next-queries/components/next-queries.vue | 2 -- .../x-modules/popular-searches/components/popular-searches.vue | 2 -- .../query-suggestions/components/query-suggestions.vue | 2 -- 10 files changed, 5 insertions(+), 13 deletions(-) diff --git a/packages/x-components/src/components/display-emitter.vue b/packages/x-components/src/components/display-emitter.vue index 720c9a0506..59a9d1e667 100644 --- a/packages/x-components/src/components/display-emitter.vue +++ b/packages/x-components/src/components/display-emitter.vue @@ -2,7 +2,6 @@ import { defineComponent, getCurrentInstance, - h, onMounted, onUnmounted, PropType, @@ -30,7 +29,7 @@ let unwatchDisplay: WatchStopHandle | undefined; onMounted(() => { - const element = getCurrentInstance()?.proxy.$el as HTMLElement | undefined; + const element = getCurrentInstance()?.proxy?.$el as HTMLElement | undefined; if (element) { unwatchDisplay = useEmitDisplayEvent({ element, diff --git a/packages/x-components/src/components/modals/base-events-modal.vue b/packages/x-components/src/components/modals/base-events-modal.vue index 4d4a7fe449..db99852842 100644 --- a/packages/x-components/src/components/modals/base-events-modal.vue +++ b/packages/x-components/src/components/modals/base-events-modal.vue @@ -1,6 +1,5 @@ +