From f5c167eb9efa25de2c2acc2d3e06bd13ce8887bf Mon Sep 17 00:00:00 2001 From: lukewalczak Date: Wed, 25 Nov 2020 14:18:51 +0100 Subject: [PATCH] Make initial value passed to slider always a number --- .../components/src/mobile/bottom-sheet/range-cell.native.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/components/src/mobile/bottom-sheet/range-cell.native.js b/packages/components/src/mobile/bottom-sheet/range-cell.native.js index da50c1206a31e..b7a37c66b9b61 100644 --- a/packages/components/src/mobile/bottom-sheet/range-cell.native.js +++ b/packages/components/src/mobile/bottom-sheet/range-cell.native.js @@ -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,