fix(tour): target position (#6629)

pull/6658/head
果冻橙 1 year ago committed by GitHub
parent 308c30c738
commit 6861a77d29
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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 = () => (

Loading…
Cancel
Save