adding in onChange prop to Range Slider
This commit is contained in:
parent
d65414731e
commit
272b8fcf43
@ -4,6 +4,7 @@ const styles = require('./style.css');
|
||||
|
||||
const RangeSlider = ({
|
||||
className,
|
||||
onChange,
|
||||
style
|
||||
}) => {
|
||||
|
||||
@ -21,6 +22,7 @@ const RangeSlider = ({
|
||||
return (
|
||||
<input
|
||||
className={slider}
|
||||
onChange={onChange}
|
||||
style={style}
|
||||
type="range"
|
||||
/>
|
||||
@ -29,6 +31,7 @@ const RangeSlider = ({
|
||||
|
||||
RangeSlider.propTypes = {
|
||||
className: React.PropTypes.string,
|
||||
onChange: React.PropTypes.func,
|
||||
style: React.PropTypes.object
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user