Fix time component

This commit is contained in:
SachaG 2017-11-14 10:49:13 +09:00
parent cd5a31f6b0
commit 1a33e91554

View file

@ -13,7 +13,7 @@ class Time extends PureComponent {
// when the datetime picker has mounted, SmartForm will catch the date value (no formsy mixin in this component)
componentDidMount() {
if (this.props.value) {
this.updateDate(this.props.value);
this.context.updateCurrentValues({[this.props.name]: this.props.value});
}
}