cignium-hypermedia-client
Advanced tools
Comparing version 1.15.0 to 1.16.0
@@ -32,2 +32,3 @@ { | ||
"babel-preset-stage-0": "^6.3.13", | ||
"babel-polyfill": "^6.6.1", | ||
"css-loader": "^0.23.0", | ||
@@ -57,3 +58,3 @@ "eslint": "^1.10.3", | ||
}, | ||
"version": "1.15.0" | ||
"version": "1.16.0" | ||
} |
@@ -9,4 +9,4 @@ import cx from 'classnames' | ||
id={property.name} | ||
onBlur={() => onCommit()} | ||
onChange={e => onUpdate(e.target.value == '' ? null : parseFloat(e.target.value))} | ||
onBlur={() => onCommit(value == '' ? null : value)} | ||
onChange={e => onUpdate(parseInput(e.target.value))} | ||
title={property.title} | ||
@@ -16,1 +16,9 @@ type='number' | ||
) | ||
function parseInput(input) { | ||
if (input == null || isNaN(parseFloat(input))) { | ||
return '' | ||
} | ||
return parseFloat(input) | ||
} |
@@ -0,1 +1,2 @@ | ||
import 'babel-polyfill' | ||
import { render } from 'react-dom' | ||
@@ -2,0 +3,0 @@ import { navigate, update } from './api' |
Sorry, the diff of this file is too big to display
642093
3405
27