ElemeFE / ElemeFE/element

vue2.7版本将window对象加了proxy,导致部分判断出现错误

Open
#22,406 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Vue
Stars
54k
Forks
14.4k
PR merge metrics
No merged PRs in 30d

Description

(https://github.com/ElemeFE/element/blob/v2.15.13/src/utils/popper.js)
再此文件1060行出现代码 if (parent === root.document) {
此代码在vue2.7时,恒不相等,因为root.document为proxy对象
会导致代码错误,ui从而出现问题
望速回复,或提供解决方案!!
效果图:
![image](https://user-images.githubusercontent.com/26592801/221118904-c59db426-c37f-4b34-a635-6a1e1dab8421.png)

源码图:
![image](https://user-images.githubusercontent.com/26592801/221118270-720d8d88-88ef-4608-a8ea-dd6189bae4ca.png)

断点图:
![image](https://user-images.githubusercontent.com/26592801/221118147-a1969947-e82a-4e7f-abb6-da26ac4ffc9f.png)

示例图:
![image](https://user-images.githubusercontent.com/26592801/221118074-86a5edab-66b0-4e0f-9c66-df720af605ff.png)

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.