From 0c75ba8cb20146f455117eb4cec98fa5a1ac8445 Mon Sep 17 00:00:00 2001 From: Neko Ayaka Date: Sun, 17 Sep 2023 20:07:09 +0800 Subject: [PATCH] fix(enhanced-readabilities): fix hover for tooltip --- .../src/components/MenuHelp.vue | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/vitepress-plugin-enhanced-readabilities/src/components/MenuHelp.vue b/packages/vitepress-plugin-enhanced-readabilities/src/components/MenuHelp.vue index aee9d718..79830d71 100644 --- a/packages/vitepress-plugin-enhanced-readabilities/src/components/MenuHelp.vue +++ b/packages/vitepress-plugin-enhanced-readabilities/src/components/MenuHelp.vue @@ -12,10 +12,11 @@ const emits = defineEmits<{ }>() const menuTitleElementRef = toRef(props, 'menuTitleElementRef') +const helpElementRef = ref() const popupElementRef = ref() const mounted = useMounted() -const { isOutside } = useMouseInElement(menuTitleElementRef) +const { isOutside } = useMouseInElement(helpElementRef) const bounding = useElementBounding(menuTitleElementRef) const popupBounding = useElementBounding(popupElementRef)