diff --git a/packages/nc-gui/components/cell/MultiSelect.vue b/packages/nc-gui/components/cell/MultiSelect.vue index d77f29ba47..ebef31bd75 100644 --- a/packages/nc-gui/components/cell/MultiSelect.vue +++ b/packages/nc-gui/components/cell/MultiSelect.vue @@ -283,7 +283,7 @@ const onTagClick = (e: Event, onClose: Function) => { } } -const cellClickHook = inject(CellClickHookInj) +const cellClickHook = inject(CellClickHookInj, null) const toggleMenu = () => { if (cellClickHook) return diff --git a/packages/nc-gui/components/cell/SingleSelect.vue b/packages/nc-gui/components/cell/SingleSelect.vue index 51c1554bb2..a06abbaa9b 100644 --- a/packages/nc-gui/components/cell/SingleSelect.vue +++ b/packages/nc-gui/components/cell/SingleSelect.vue @@ -209,7 +209,7 @@ const onSelect = () => { isOpen.value = false } -const cellClickHook = inject(CellClickHookInj) +const cellClickHook = inject(CellClickHookInj, null) const toggleMenu = (e: Event) => { // todo: refactor