fix: TypeError: can't access property "emitsOptions", r is null

This commit is contained in:
iamsivin
2026-01-15 13:40:05 +05:30
parent 8eb0558b0a
commit 716a5b0dc3
3 changed files with 17 additions and 3 deletions
@@ -7,7 +7,12 @@ import {
useTemplateRef,
inject,
} from 'vue';
import { useWindowSize, useElementBounding, useScrollLock } from '@vueuse/core';
import {
useWindowSize,
useElementBounding,
useScrollLock,
onClickOutside,
} from '@vueuse/core';
import TeleportWithDirection from 'dashboard/components-next/TeleportWithDirection.vue';
@@ -77,6 +82,9 @@ const handleClose = () => {
emit('close');
};
// Close menu when clicking outside
onClickOutside(menuRef, handleClose);
onUnmounted(() => {
isLocked.value = false;
});