Closed turadg closed 8 years ago
Without this, if max==min then _calcOffset returns NaN. This causes the shallowEqual call in React's checkAndWarnForMutatedStyle to return false because NaN equals nothing, including itself.
_calcOffset
shallowEqual
checkAndWarnForMutatedStyle
NaN
Fixes #61
This change is
Looks good to me, thanks for the pull request.
Without this, if max==min then
_calcOffset
returns NaN. This causes theshallowEqual
call in React'scheckAndWarnForMutatedStyle
to return false becauseNaN
equals nothing, including itself.Fixes #61
This change is