diff --git a/src/fields/color.jsx b/src/fields/color.jsx
index 6ca92af..4c1895c 100644
--- a/src/fields/color.jsx
+++ b/src/fields/color.jsx
@@ -4,6 +4,7 @@ import { Select, Input } from 'rebass'
/*** Number fields with support for min, max and units and documentation*/
class ColorField extends React.Component {
static propTypes = {
+ onChange: React.PropTypes.func.isRequired,
name: React.PropTypes.string.isRequired,
value: React.PropTypes.number,
default: React.PropTypes.number,
@@ -12,6 +13,7 @@ static propTypes = {
render() {
return {
return {children: val, value: val}
})
- return
+ return
}
}
diff --git a/src/fields/number.jsx b/src/fields/number.jsx
index da32a25..4b764a7 100644
--- a/src/fields/number.jsx
+++ b/src/fields/number.jsx
@@ -4,6 +4,7 @@ import { Select, Input } from 'rebass'
/*** Number fields with support for min, max and units and documentation*/
class NumberField extends React.Component {
static propTypes = {
+ onChange: React.PropTypes.func.isRequired,
name: React.PropTypes.string.isRequired,
value: React.PropTypes.number,
default: React.PropTypes.number,
@@ -15,6 +16,7 @@ class NumberField extends React.Component {
render() {
return
-