diff --git a/packages/nc-gui/components/smartsheet/Toolbar.vue b/packages/nc-gui/components/smartsheet/Toolbar.vue index 5bbbcf3dea..e3ae5ca478 100644 --- a/packages/nc-gui/components/smartsheet/Toolbar.vue +++ b/packages/nc-gui/components/smartsheet/Toolbar.vue @@ -54,8 +54,8 @@ const { allowCSVDownload } = useSharedView() diff --git a/packages/nc-gui/components/smartsheet/sidebar/index.vue b/packages/nc-gui/components/smartsheet/sidebar/index.vue index 58b5a6e634..5b530433ef 100644 --- a/packages/nc-gui/components/smartsheet/sidebar/index.vue +++ b/packages/nc-gui/components/smartsheet/sidebar/index.vue @@ -52,7 +52,6 @@ const sidebarCollapsed = computed(() => !isOpen.value) /** Sidebar ref */ const sidebar: Ref = ref(null) -const FOO: Ref = ref(null) /** Watch route param and change active view based on `viewTitle` */ watch( @@ -138,52 +137,38 @@ function onOpenModal({ close(1000) } } - -document.addEventListener('click', (event: MouseEvent) => { - // sidebar.value. - // const sidebarFoo = document.querySelector('.nc-right-sidebar') - const sidebarFoo = sidebar.value - alert(JSON.stringify(FOO.value)) - // alert(JSON.stringify(sidebarFoo)) - // if (isMobileMode.value && !sidebar.value?.contains(event.target as Node)) { - if (isMobileMode.value && !sidebarFoo?.contains(event.target as Node)) { - alert('FOO') - } -})