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

SubMenu.vue 模板问题 #1343

Closed
1 task
DinoRun opened this issue Oct 25, 2019 · 3 comments
Closed
1 task

SubMenu.vue 模板问题 #1343

DinoRun opened this issue Oct 25, 2019 · 3 comments

Comments

@DinoRun
Copy link

DinoRun commented Oct 25, 2019

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

Version

1.4.2

Environment

window

Reproduction link

https://github.com/vueComponent/ant-design-vue/blob/master/components/menu/demo/SubMenu.vue

Steps to reproduce

根据路由使用SubMenu.vue生成顶部菜单,点击父级菜单项,子级菜单会收起(隐藏),而使用SubMenu1.vue生成的菜单则不会有这样的问题,

What is expected?

点击父级菜单项,子级菜单应该显示,而不是隐藏;

What is actually happening?

点击父级菜单项,子级列表隐藏,这是不应该的;

@oraant
Copy link

oraant commented Nov 11, 2019

确实会有这个bug,当menu的模式选为horizontal时,函数式组件生成的<li>元素,多出了一个click监听器。
这个监听器会导致一点击展开的子菜单,子菜单就会收起来,而非正确的展示孙菜单。

@github-actions
Copy link

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days

@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 Jan 22, 2022
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

2 participants