-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Custom Wrapper fires the onMouseEnter twice #1255
Comments
Is there anything else I can provide in order to reproduce this bug? |
I can confirm I'm seeing the same thing. I have a tooltip component that was firing mouseEnter twice when it should only happen once. Only happens when the component is in Styleguidist. Using the component in an app works as expected. I'm on Styleguidist 7.3.11. I'm in the process of upgrading to the latest version, and I'll follow-up once I've done that. |
This is still an issue in 9.0.1 |
I've tried to do research and found that it's true if component has padding applied. I'm not sure, but I've seen an issue in react which is not the same but might be relevant facebook/react#10906 and it says that some onMouseEnter incorrect calculation has been fixed in Why I'm talking about it if styleguidist uses newer version of react? To compile markdown to jsx styleguidist uses markdown-to-jsx module and it uses version Could it be possible that during compilation we are getting this incorrect calculation bug for onMouseEnter event because of complier react version? |
We are facing same issue with v9. |
😴 This issue has been automatically marked as stale because it has not had recent activity. It will be closed in a week without any further activity. Consider opening a pull request if you still have this issue or want this feature. |
Current behavior
A very simple custom
Wrapper
causes component'sonMouseOver
to fire twice.To reproduce
Check console when you hover over Button example on https://vforge.github.io/react-styleguidist-mouse-enter-bug/
Source code: https://github.com/vforge/react-styleguidist-mouse-enter-bug
Expected behavior
onMouseEnter
should fire only once.The text was updated successfully, but these errors were encountered: