Custom react-styleguidist
<Wrapper>
component fires the onMouseEnter twice, but only if it has any style
. I also was able to reproduced it with a className
instead.
- Go to https://vforge.github.io/react-styleguidist-mouse-enter-bug/index.html
- Open browser's console and mouseover the button - you'll see double onMouseEnter in the log
- While server is still open, edit
Wrapper.js
and change it to any other component. - onMouseEnter is fiering only once.
- Install dependencies:
$> npm install
- Run styleguide server:
$> npm run styleguide
- Go to http://localhost:6060/
- Open browser's console and mouseover the button - you'll see double onMouseEnter in the log
- While server is still open, edit
Wrapper.js
and change it to any other component. - onMouseEnter is fiering only once.