Skip to content

Commit

Permalink
fix: slider to work with redux form (#2615)
Browse files Browse the repository at this point in the history
  • Loading branch information
LeandroTorresSicilia committed Apr 23, 2023
1 parent 250bfc5 commit 4db8060
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/components/Slider/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,14 @@ import StyledSlider from './styled/slider';
import StyledInputRange from './styled/inputRange';
import StyledValue from './styled/value';
import ErrorText from '../Input/styled/errorText';
import withReduxForm from '../../libs/hocs/withReduxForm';

/**
* An input range slider lets the user specify a numeric value which must be between
* two specified values.
* @category Form
*/
export default class Slider extends Component {
class Slider extends Component {
constructor(props) {
super(props);
this.sliderId = uniqueId('slider-id');
Expand Down Expand Up @@ -176,3 +177,5 @@ Slider.defaultProps = {
labelAlignment: 'center',
hideLabel: false,
};

export default withReduxForm(Slider);

0 comments on commit 4db8060

Please sign in to comment.