|
|
@ -15,15 +15,15 @@ import { |
|
|
|
extractSdkResponseErrorMsg, |
|
|
|
extractSdkResponseErrorMsg, |
|
|
|
h, |
|
|
|
h, |
|
|
|
inject, |
|
|
|
inject, |
|
|
|
|
|
|
|
isDrawerOrModalExist, |
|
|
|
onMounted, |
|
|
|
onMounted, |
|
|
|
reactive, |
|
|
|
reactive, |
|
|
|
ref, |
|
|
|
ref, |
|
|
|
|
|
|
|
useEventListener, |
|
|
|
useMetas, |
|
|
|
useMetas, |
|
|
|
useProject, |
|
|
|
useProject, |
|
|
|
useEventListener, |
|
|
|
|
|
|
|
useRoles, |
|
|
|
useRoles, |
|
|
|
useSelectedCellKeyupListener, |
|
|
|
useSelectedCellKeyupListener, |
|
|
|
isDrawerOrModalExist, |
|
|
|
|
|
|
|
watch, |
|
|
|
watch, |
|
|
|
} from '#imports' |
|
|
|
} from '#imports' |
|
|
|
import MdiCloseCircle from '~icons/mdi/close-circle' |
|
|
|
import MdiCloseCircle from '~icons/mdi/close-circle' |
|
|
@ -286,10 +286,14 @@ onUnmounted(() => { |
|
|
|
cellClickHook?.on(cellClickHookHandler) |
|
|
|
cellClickHook?.on(cellClickHookHandler) |
|
|
|
}) |
|
|
|
}) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const handleClose = (e: MouseEvent) => { |
|
|
|
const handleClose = (e: MouseEvent) => { |
|
|
|
if (isOpen.value && aselect.value && !aselect.value.$el.contains(e.target)) { |
|
|
|
// close dropdown if clicked outside of dropdown |
|
|
|
|
|
|
|
if ( |
|
|
|
|
|
|
|
isOpen.value && |
|
|
|
|
|
|
|
aselect.value && |
|
|
|
|
|
|
|
!aselect.value.$el.contains(e.target) && |
|
|
|
|
|
|
|
!document.querySelector('.nc-dropdown-multi-select-cell')?.contains(e.target as Node) |
|
|
|
|
|
|
|
) { |
|
|
|
isOpen.value = false |
|
|
|
isOpen.value = false |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|