diff --git a/packages/nc-gui/components/cell/SingleSelect.vue b/packages/nc-gui/components/cell/SingleSelect.vue index 4a40dddd06..6c4cb17c67 100644 --- a/packages/nc-gui/components/cell/SingleSelect.vue +++ b/packages/nc-gui/components/cell/SingleSelect.vue @@ -208,8 +208,6 @@ const onSelect = () => { const cellClickHook = inject(CellClickHookInj) const toggleMenu = (e: Event) => { - if (cellClickHook) return - // todo: refactor // check clicked element is clear icon if ( @@ -217,8 +215,9 @@ const toggleMenu = (e: Event) => { (e.target as HTMLElement)?.closest('.ant-select-clear') ) { vModel.value = '' - return + return e.stopPropagation() } + if (cellClickHook) return isOpen.value = editAllowed.value && !isOpen.value }