Skip to content

Commit

Permalink
[RNMobile] Make initial value passed to slider always a number (#27273)
Browse files Browse the repository at this point in the history
  • Loading branch information
lukewalczak authored Nov 25, 2020
1 parent 8a3b315 commit 27425ea
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ class BottomSheetRangeCell extends Component {
this.onCellPress = this.onCellPress.bind( this );

const { value, defaultValue, minimumValue } = props;
const initialValue = value || defaultValue || minimumValue;
const initialValue = Number( value || defaultValue || minimumValue );

this.state = {
accessible: true,
Expand Down

0 comments on commit 27425ea

Please sign in to comment.