Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(range-slider): Fix slider boundaries (#2408)
* fix(connectRangeSlider): update getConfiguration for handle with previous configuration * feat(RangeSlider): add stories for disabled * refactor(connectRangeSlider): add function for compute range * refactor(connectRangeSlider): update function for compute refinement from stats * refactor(connectRangeSlider): add test for getConfiguration function * refactor(connectRangeSlider): extract condition for bounds * style(connectRangeSlider): just refactor the style of the function * refactor(connectRangeSlider): extract refine on widget * fix(connectRangeSlider): trggier refinement when refine value is equal to bounds * refactor(connectRangeSlider): rename variable for avoid confusion * refactor(Slider): always call refine with values * refactor(Slider): rename test for consistency * fix(range-slider-widget): update test according to the new refine function * refactor: reoder widget functions * docs(connectRangeSlider): update incorrect options name and signature function * refactor(connectRangeSlider): restore initial behaviour for fallback refinements values * feat(range-slider): add stories * refactor(connectRangeSlider): restore Infinity defaut refinement * refactor(range-slider): restore start override in widget * fix(connectRangeSlider): update wrong destructuring * fix(connectorRangeSlider): dont refine on bounds * feat(range-slider): add stories for min only and max only bounds * fix(connectRangeSlider): update expectations * refactor(connectRangeSlider): use destructuring in refinement * feat(connectRangeSlider): add function for test if able to refine * feat(connectRangeSlider): allow disable slider without alterate the results * refactor(connectRangeSlider): remove compute refinement from stats * fix(range-slider): restore initial behaviour * refactor(connectRangeSlider): rename variables * feat(range-slider-stories): increase step value for step stories * fix(connectRangeSlider): use matches iteratee shorthand * refactor: avoid usage of useless fat arrow * fix(connectRangeSlider): avoid refine out of range * refactor(connectRangeSlider): use isFinite instead of condittion * refactor(connectRangeSlider): use ternary instead of let bindings * chore(dev-novel): Add more meaningful values to min & max story * refactor(Slider): rename named export to RawSlider * refactor(connectRangeSlider): rename is(Min|Max)Bounds to has(Min|Max)Bound * refactor(connectRangeSlider): rename (min|max)Bounds to (min|max)Bound * refactor(connectRangeSlider): avoid using _isAbleToRefine * refactor(connectRangeSlider): use array as return value for _getCurrentRefinement * refactor(connectRangeSlider): rewrite test without mock helper * refactor(range-slider-test): reorder test for coherence with Jest output * fix(range-slider): clamp values to range * fix(conncetRangeSlider): avoid to round refinement values Fix #2386 - The boundaries were ignored in `getConfiguration` for the first render - They were ignored when a refinement was triggered and reset
- Loading branch information