Skip to content

Commit

Permalink
remove deprecated defaultValues
Browse files Browse the repository at this point in the history
  • Loading branch information
sghall committed Mar 27, 2018
1 parent 784e081 commit fc5eea3
Showing 1 changed file with 2 additions and 11 deletions.
13 changes: 2 additions & 11 deletions src/Slider/Slider.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,15 +55,10 @@ class Slider extends PureComponent {
}

componentWillMount() {
const { defaultValues, values, domain, step, reversed } = this.props

warning(
defaultValues === undefined,
`${prfx} defaultValues is deprecated. Use 'values' prop.`,
)
const { values, domain, step, reversed } = this.props

this.updateRange(domain, step, reversed)
this.setValues(values || defaultValues, reversed)
this.setValues(values, reversed)
}

componentWillReceiveProps(next) {
Expand Down Expand Up @@ -383,10 +378,6 @@ Slider.propTypes = {
* The numbers will be forced into the domain if they are two small or large.
*/
values: PropTypes.array,
/**
* DEPRECATED - Use 'values' prop
*/
defaultValues: PropTypes.array,
/**
* The step value for the slider.
*/
Expand Down

0 comments on commit fc5eea3

Please sign in to comment.