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

fix: fix onItemHover is not a function bug #189

Merged
merged 1 commit into from
Oct 24, 2024
Merged

Conversation

tanbowensg
Copy link
Member

@tanbowensg tanbowensg commented Oct 24, 2024

修复一个已知问题,鼠标hover到dropdown item上面的时候,会出现 Uncaught TypeError: onItemHover is not a function。

截屏2024-10-24 10 49 27

经查,这个只会出现在自定义MenuItem组件中,原因是props传递的时候丢失了。所以自定义的MenuItem组件需要把props透传给 Menu.item 组件。
react-component/menu#142 (comment)

@tanbowensg tanbowensg merged commit 2d1cf40 into main Oct 24, 2024
1 check passed
@tanbowensg tanbowensg deleted the bowen/onItemHover branch October 24, 2024 08:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant