-
-
Notifications
You must be signed in to change notification settings - Fork 262
support onMouseEnter/onMouseLeave for MenuItem and SubMenu
#32
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
support onMouseEnter/onMouseLeave for MenuItem and SubMenu
#32
Conversation
|
Changes Unknown when pulling 61ab5ab on superRaytin:feature/mouse-event-on-submenu-and-menuitem into * on react-component:master*. |
src/MenuItem.jsx
Outdated
| } | ||
| }, 30); | ||
| if (props.mode === 'inline') { | ||
| if (props.onMouseLeave) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
已经有 defaultProps 了,不需要再做检测了吧。。
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
嗯。。我修改一下
|
|
Changes Unknown when pulling 2b173f8 on superRaytin:feature/mouse-event-on-submenu-and-menuitem into * on react-component:master*. |
|
@afc163 vertical 和 horizonal 的子菜单是 popup,支持的话会不会有点混乱。。 其他事件是指所有的 Mouse Events 吗? |
|
也不算支持,算是修复所有原生事件传递。 |
那所有 rc 组件都需要吧,需要通盘来考虑 @yiminghe |
|
只加必要的就行了 |
MenuItem/SubMenu 增加
onMouseEnter/onMouseLeave事件,只在mode: inline时生效。ant-design/ant-design#1445