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

it will prompt Uncaught TypeError: Cannot set property 'undefined-menu-' of undefined when using typescrpt in Menu.SubMenu #4133

Closed
1 task
FocusHuang opened this issue May 28, 2021 · 2 comments
Labels

Comments

@FocusHuang
Copy link

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

Version

2.1.4

Environment

vue 3.0.5

Reproduction link

https://github.com/vueComponent/ant-design-vue

Steps to reproduce

basic-menu-item:


<sub-menu
v-if="hasChildren(item) && getShowMenu"

What is expected?

will not prompt the error

What is actually happening?

SubMenu.js:50 Uncaught TypeError: Cannot set property 'undefined-menu-' of undefined
at updateDefaultActiveFirst2 (ant-design-vue.js:22416)
at Proxy.data17 (ant-design-vue.js:22514)
at resolveData (chunk-USWSIKGU.js:5634)
at applyOptions (chunk-USWSIKGU.js:5473)
at finishComponentSetup (chunk-USWSIKGU.js:6092)
at handleSetupResult (chunk-USWSIKGU.js:6062)
at setupStatefulComponent (chunk-USWSIKGU.js:6037)
at setupComponent (chunk-USWSIKGU.js:5990)
at mountComponent (chunk-USWSIKGU.js:4279)
at processComponent (chunk-USWSIKGU.js:4258)

@tangjinzhou
Copy link
Member

update to 2.2.0-beta.2

@github-actions
Copy link

github-actions bot commented Jun 9, 2022

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 Jun 9, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants