From ffec1c8004081cd5be7fdf9284dc543699593bf6 Mon Sep 17 00:00:00 2001 From: Adam Obuchowicz Date: Thu, 12 Dec 2024 00:16:27 +0100 Subject: [PATCH] Fix clicking-out Component Browser (#11832) Fixes #11829 There was implicit `any` on refs, so the typechecker didn't catch missing property. --- app/gui/src/project-view/components/ComponentBrowser.vue | 2 -- app/gui/src/project-view/components/DockPanel.vue | 4 +--- app/gui/src/project-view/components/GraphEditor.vue | 9 +++------ 3 files changed, 4 insertions(+), 11 deletions(-) diff --git a/app/gui/src/project-view/components/ComponentBrowser.vue b/app/gui/src/project-view/components/ComponentBrowser.vue index 2355948580..29bfd8842f 100644 --- a/app/gui/src/project-view/components/ComponentBrowser.vue +++ b/app/gui/src/project-view/components/ComponentBrowser.vue @@ -72,8 +72,6 @@ const emit = defineEmits<{ const cbRoot = ref() const componentList = ref>() -defineExpose({ cbRoot }) - const clickOutsideAssociatedElements = (e: PointerEvent) => { return props.associatedElements.length === 0 ? false diff --git a/app/gui/src/project-view/components/DockPanel.vue b/app/gui/src/project-view/components/DockPanel.vue index 3a217c129e..68ee38c525 100644 --- a/app/gui/src/project-view/components/DockPanel.vue +++ b/app/gui/src/project-view/components/DockPanel.vue @@ -24,8 +24,6 @@ const props = defineProps<{ }>() const slideInPanel = ref() -const root = ref() -defineExpose({ root }) const computedSize = useResizeObserver(slideInPanel) const computedBounds = computed(() => new Rect(Vec2.Zero, computedSize.value)) @@ -48,7 +46,7 @@ const tabStyle = {