Skip to content

Commit

Permalink
Fix IE9 support (replace Array.fill with Array.map)
Browse files Browse the repository at this point in the history
  • Loading branch information
bayov committed Aug 6, 2016
1 parent 169c2e7 commit a520a56
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Slider.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ class Slider extends React.Component {
super(props);

const {range, min, max} = props;
const initialValue = range ? new Array(range + 1).fill(min) : min;
const initialValue = range ? new Array(range + 1).map(() => min) : min;
const defaultValue = ('defaultValue' in props ? props.defaultValue : initialValue);
const value = (props.value !== undefined ? props.value : defaultValue);

Expand Down

0 comments on commit a520a56

Please sign in to comment.