Skip to content
Snippets Groups Projects
Commit 80f4b6d1 authored by Kyle Doherty's avatar Kyle Doherty Committed by GitHub
Browse files

handle display of 0 in the number picker (#4689)

* handle 0

* cleanup
parent 7ac94487
No related branches found
No related tags found
No related merge requests found
......@@ -23,7 +23,13 @@ export default class NumberPicker extends Component<*, Props, State> {
constructor(props: Props) {
super(props);
this.state = {
stringValues: props.values.map(v => String(v || "")),
stringValues: props.values.map(v => {
if(typeof v === 'number') {
return String(v)
} else {
return String(v || "")
}
}),
validations: this._validate(props.values)
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment