react-cursor-position
react-cursor-position copied to clipboard
Fixing an issue with missing propTypes
Don't really understand the issue, but this fixes #35 by:
- providing an empty object to Object.keys as a default
- only emitting the event when there's actually something to send along with it
This fixes an issue I was having with another component using this one (ethanselzer/react-image-magnify)
Coverage remained the same at 100.0% when pulling e2fd02c9ff71236518382ce555bbf38660e3e540 on Coriou:fix-missing-props into 0f594bb6f08e774c68ef131d883ece1a55823ad0 on ethanselzer:master.
I have tested the PR and it solves the issue. Please merge!
@ethanselzer when can we expect this PR to be merged as this is a blockage in our production deployment, so knowing an expected time we can plan accordingly.
@ethanselzer @jacekradko can anybody merge this PR?
To anyone having issues with this library, I have found this alternative which seems to work well: laurenashpole/react-inner-image-zoom
@ethanselzer @jacekradko can anybody merge this PR, please?