Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

menu 组件在 edge 下使用报错 Error in nextTick: "TypeError: Unable to get property '$parent' of undefined or null reference" #1492

Closed
1 task
imllz opened this issue Dec 2, 2019 · 8 comments

Comments

@imllz
Copy link

imllz commented Dec 2, 2019

  • I have searched the issues of this repository and believe that this is not a duplicate.

Version

1.4.8

Environment

windows10,Microsoft Edge 42.17134.1098.0,vue2.6.10

Reproduction link

Edit on CodeSandbox

Steps to reproduce

  • vue-cli3生成的模板
  • 全量加载ant-design-vue组件
  • 使用menu组件官方第一个demo例子
  • 使用edge访问,菜单下拉无法展示
  • 控制报错
[Vue warn]: Error in nextTick: "TypeError: Unable to get property '$parent' of undefined or null reference"

found in

---> Trigger>
SubMenu>
ConnectSubMenu>
ASubMenu>
DOMWrap>
SubPopupMenu>
ConnectSubPopupMenu>
ProxyConnectSubPopupMenu>
StoreProvider>
Menu>
AMenu>
App> at src/App.vue
Root>

TypeError: Unable to get property '$parent' of undefined or null reference

[Vue warn]: Error in nextTick: "TypeError: Unable to get property '_transitionClasses' of undefined or null reference"

TypeError: Unable to get property '_transitionClasses' of undefined or null reference

What is expected?

二级菜单下拉展示正确

What is actually happening?

二级菜单下拉无法展示


chrome 下正常

@sendya
Copy link
Member

sendya commented Dec 2, 2019

image

不好意思没能复现,是否加 polyfills 看能否解决

@imllz
Copy link
Author

imllz commented Dec 3, 2019

@sendya 访问的时候不要打开控制台,然后基本上这个问题就能出现

@sendya
Copy link
Member

sendya commented Dec 4, 2019

@sendya 访问的时候不要打开控制台,然后基本上这个问题就能出现

好的,已复现

@imllz
Copy link
Author

imllz commented Dec 4, 2019

@sendya 这个问题是什么原因导致的。如果是组件库本身的问题,我们应用这边目前有没什么可以规避的方法?

@ShiliangLuo
Copy link

我已经给这个问题搞死了。弄了几天还没定位问题在哪。关键是不打开控制台就会报错,打开就没有

@tangjinzhou
Copy link
Member

生产模式又没这个问题 😓

tangjinzhou added a commit that referenced this issue Dec 10, 2019
@tangjinzhou
Copy link
Member

update to 1.4.9

@github-actions
Copy link

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Dec 10, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants