fix form demo

This commit is contained in:
zombiej 2018-10-21 13:29:43 +08:00
parent 4f8200bf53
commit d814145b7e

View File

@ -30,7 +30,7 @@ class PriceInput extends React.Component {
// Should be a controlled component.
if ('value' in nextProps) {
return {
value: nextProps.value || {},
...(nextProps.value || {}),
};
}
return null;