From 6861a77d2991017b83e6bb7ebe57678683598de5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9E=9C=E5=86=BB=E6=A9=99?= Date: Thu, 15 Jun 2023 13:23:04 +0800 Subject: [PATCH] fix(tour): target position (#6629) --- components/vc-tour/Tour.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/vc-tour/Tour.tsx b/components/vc-tour/Tour.tsx index ac01028bc..a5ca7851b 100644 --- a/components/vc-tour/Tour.tsx +++ b/components/vc-tour/Tour.tsx @@ -156,8 +156,8 @@ const Tour = defineComponent({ const mergedMaskStyle = typeof mergedMask.value === 'boolean' ? undefined : mergedMask.value; // when targetElement is not exist, use body as triggerDOMNode - const getTriggerDOMNode = node => { - return node || targetElement.value || document.body; + const getTriggerDOMNode = () => { + return targetElement.value || document.body; }; const getPopupElement = () => (