Browse Source

fix(gui): cell clear icon

Signed-off-by: Pranav C <pranavxc@gmail.com>
pull/4957/head
Pranav C 2 years ago
parent
commit
93803fad58
  1. 5
      packages/nc-gui/components/cell/SingleSelect.vue

5
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
}

Loading…
Cancel
Save