ElemeFE / ElemeFE/element-react

Menu组件跳转路由的问题

Open
#625 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
2.8k
Forks
435
PR merge metrics
No merged PRs in 30d

Description

```
{
console.log(e)
this.props.location.pathname !== e && this.props.history.push(e)
}}>
A
B
C

```
在没有跳转路由的时候当前样式表现正常,触发onSelect也正常,当我跳转路由时会不规律的点击一次按钮触发2次onSelect事件,并且有时是当前的同一个,有时不是...不知道是bug还是我使用方式不对?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.