All notable changes to this project will be documented in this file. See standard-version for commit guidelines.
2.0.6 (2023-06-27)
2.0.5 (2023-06-03)
- prevent snap back issue on mobile (107e2bb)
- avoid manipulating state directly (6ca5853)
- inverted sliders, add simple tests (9c50f38)
- inverted sliders, cleanup (bb0ed77)
- inverted sliders, honor inverted key down handler for horizontal sliders (bdb2292)
- update snapshot (4ead745)
2.0.4 (2022-09-12)
- module resolution (2fbdec6)
- Set empty style porperty values to undefined instead of empty string (9456005), closes #271
2.0.3 (2022-08-18)
2.0.2 (2022-08-18)
- dual package extensions (ef1cb1e)
2.0.1 (2022-05-16)
2.0.0 (2022-03-29)
- update
create-react-styleguide
to 8x
- add ResizeObserver to handle slider resize programatically (95bd172)
- provide root export (7b0c97d)
- upgrade husky and add conventional commit (caf8246)
- update
create-react-styleguide
to 8x (d1cbe4e)
1.3.1 (2021-06-14)
- ignore meta key events in keyDown handler (cde4c80)
1.3.0 (2021-06-03)
1.2.0 (2021-05-18)
- Add support for multiple values in ariaLabelledby (28eb332)
- Adding a new ariaLabelledby prop for use with Assistive Technologies (7d8cc4d)
- Adding separate arialabelledby examples (5c97326)
- Removing ariaLabel from ariaLabelledBy examples and htmlFor declarations (5fbc3de)
1.1.4 (2021-01-22)
1.1.3 (2021-01-21)
1.1.2 (2020-11-10)
onAfterChange
now returns the correct value when used as a controlled component (03fcc17), closes #201
1.1.1 (2020-11-03)
- UNSAFE_componentWillReceiveProps replaced in favor of getDerivedStateFromProps (5fff681), closes #193
1.1.0 (2020-11-03)
- add step support for marks (38f29d3)
- add support for boolean marks and mark class (85060d2)
- add support for marks (0d1a878)
- add support to custom marks (21da836)
- update examples with marks (ecffc59)
1.0.11 (2020-09-22)
- Revert "refactor: UNSAFE_componentWillReceiveProps replaced in favor of getDerivedStateFromProps" to fix controlled components (d068026), closes #197
1.0.10 (2020-09-21)
- update create-react-styleguide@^6 (222ea5f)
- update standard-version and add a versionrc to include more config types during releases (5deae9a)
- UNSAFE_componentWillReceiveProps replaced in favor of getDerivedStateFromProps (904e927), closes #193
1.0.9 (2020-09-08)
1.0.8 (2020-06-15)
- account for floating point operations when stepping values with the keyboard (93f89d8), closes #179
- call
onBeforeChange
andonAfterChange
lifecycle methods when clicking track (1e3d90e), closes #180 - encapsulate value reference within ReactSlider (#181) (453855f)
1.0.7 (2020-05-17)
1.0.6 (2020-05-10)
1.0.5 (2020-05-09)
1.0.4 (2020-04-24)
- update offset calculation to support IE >=9 (78718d1)
1.0.3 (2020-02-14)
- change event handlers are now more reliable (f1282d4), closes #161
- no need to pause touch events as they do not cause text selection (8e3e275), closes #162
1.0.2 (2020-01-11)
- clicking on the track of a vertical slider should move the correct handle (114a56d), closes #156
- make sure borders are accounted for when calculating the slider size (9e6f2f4), closes #152
1.0.1 (2019-10-22)
1.0.0 (2019-09-27)
onAfterChange
was not being fired (71746b2), closes #3- add IE11 arrow key support (20afb9e)
- aria keyboard support corrected so that left and down decreases and right and up increases (1739606), closes #144
- do nothing when right clicking on the slider (9fa9eb4)
- Home and End keys no longer scroll the page when setting the value (e8c8e1f)
- remove active state on thumb on blur (f05c7b1)
- the active thumb should get focus when a value is selected (f1cc0cc)
- remove support for custom thumbs via
children
(3cb3413)
- "handle" and "bar" are now "thumb" and "track" to follow
input[type=range]
nomenclature (e4e8ff8) ariaValuetext
now supports a function for dynamic value text (021a547)renderThumb
now renders the entire thumb node rather than just the thumb content (669dcdb)withTracks
is now true by default (a450420)- add
renderBar
render prop for customizing bar content (0de9013) - add
renderHandle
render prop for dynamic handle content (c87ed4b) - add
valueNow
to state objects ofariaValuetext
andrenderThumb
for easier access to the current value (94712f2) - add aria-orientation to slider (5125a98)
- add support for Page Up and Page Down keys (ed67408)
- pass
value
state to render props (8b0615d) - remove dependency on create-react-class (648512e)
- the paging value is now configurable via the
pageFn
prop (de75419)
- The render props
renderThumb
andrenderTrack
are now passed two arguments instead of one,props
andstate
. This makes it easier to just spread props when using a render function. renderThumb
was previously given the indexed handle value which now needs to be derived fromvalue
and `index.- custom thumbs via
children
is no longer supported. To customize thumbs, use therenderThumb
render prop instead. withTracks
is more commonly true than false, so we are making that the default- "handle" and "bar" props have been renamed to "thumb" and "track",
e.g.
withBars
is nowwithTracks
, andhandleClassName
is nowthumbClassName