File tree Expand file tree Collapse file tree 1 file changed +13
-9
lines changed Expand file tree Collapse file tree 1 file changed +13
-9
lines changed Original file line number Diff line number Diff line change @@ -159,7 +159,6 @@ class InputSpinner extends Component {
159159 return num ;
160160 }
161161
162-
163162 /**
164163 * Limit value to be within max and min range
165164 * @param value
@@ -225,13 +224,16 @@ class InputSpinner extends Component {
225224 } else {
226225 value = String ( this . parseNum ( value ) ) ;
227226 }
228- let hasPlaceholder = value === "0" && ! this . isStringEmpty ( this . props . placeholder ) ;
229- return hasPlaceholder ? "" : value . replace (
230- "." ,
231- ! this . isStringEmpty ( this . props . decimalSeparator )
232- ? this . props . decimalSeparator
233- : "."
234- ) ;
227+ let hasPlaceholder =
228+ value === "0" && ! this . isStringEmpty ( this . props . placeholder ) ;
229+ return hasPlaceholder
230+ ? ""
231+ : value . replace (
232+ "." ,
233+ ! this . isStringEmpty ( this . props . decimalSeparator )
234+ ? this . props . decimalSeparator
235+ : "."
236+ ) ;
235237 }
236238
237239 /**
@@ -803,7 +805,9 @@ class InputSpinner extends Component {
803805 */
804806 render ( ) {
805807 return (
806- < View style = { this . _getContainerStyle ( ) } { ...this . props . containerProps } >
808+ < View
809+ style = { this . _getContainerStyle ( ) }
810+ { ...this . props . containerProps } >
807811 { this . _renderLeftButton ( ) }
808812
809813 { this . props . prepend }
You can’t perform that action at this time.
0 commit comments