Skip to content

Commit c77b7f4

Browse files
committed
fix(slider): fixed pip propTypes constraint
1 parent 1d6a92f commit c77b7f4

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

components/Slider/Slider.js

+4-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,10 @@ class Slider extends React.Component {
4646
Slider.propTypes = {
4747
onChange: React.PropTypes.func,
4848
onSlide: React.PropTypes.func,
49-
pips: React.PropTypes.object,
49+
pips: React.PropTypes.oneOfType([
50+
React.PropTypes.bool,
51+
React.PropTypes.object
52+
]),
5053
range: React.PropTypes.object.isRequired,
5154
start: React.PropTypes.arrayOf(React.PropTypes.number).isRequired,
5255
tooltips: React.PropTypes.oneOfType([

0 commit comments

Comments
 (0)