Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
Fix keyboard control for null step with marks #607
Conversation
calculateNextValue incorrectly returns mark object instead of value when steps are disabled
Codecov Report
@@ Coverage Diff @@
## master #607 +/- ##
======================================
Coverage 95.4% 95.4%
======================================
Files 2 2
Lines 87 87
Branches 29 29
======================================
Hits 83 83
Misses 4 4
Continue to review full report at Codecov.
|
Currently,
util.calculateNextValue()incorrectly returns mark object instead of value when steps are disabled (by passingnulltostepprop) and marks are usedThe consequence of this is keyboard navigation will crash the slider due to unhandled errors that stem from unexpected value type.
Steps to reproduce
step = {null}as prop to slider component