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 导航菜单因宽度不够出现的省略号内点击menu-item会触发2次click #2266

Closed
snakeninja110 opened this issue May 19, 2020 · 4 comments
Labels

Comments

@snakeninja110
Copy link

Version
1.5.0+

Environment
win10 Chrome 81.0.4044

Reproduction link
https://codesandbox.io/s/menu-test-0pngm?file=/src/App.vue

Steps to reproduce
缩小窗口至menu出现省略号,此时点击被折叠的menu-item

What is expected?
只触发一次click事件

What is actually happening?
触发了2次click,一次为当前点击项的
又触发了一次list[0]项的click事件

@jiangmingwen
Copy link

你可以试试,@click.stop

@zhedream
Copy link

你可以试试,@click.stop

并不行呢, prevent 也不行
$event.stopPropagation is not a function

@zhedream
Copy link

@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 Jun 12, 2021
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

4 participants