All <Form> components need get/set value methods.
parent
a3b9b8c804
commit
b22d3be3d4
|
@ -42,10 +42,6 @@ export default React.createClass({
|
||||||
return `${date.getDate()} ${time.getFullMonth(date)} ${date.getFullYear()}`;
|
return `${date.getDate()} ${time.getFullMonth(date)} ${date.getFullYear()}`;
|
||||||
},
|
},
|
||||||
|
|
||||||
getValue () {
|
|
||||||
return this.state.value;
|
|
||||||
},
|
|
||||||
|
|
||||||
render () {
|
render () {
|
||||||
return (
|
return (
|
||||||
<div data-toolbox='date-picker'>
|
<div data-toolbox='date-picker'>
|
||||||
|
@ -65,5 +61,13 @@ export default React.createClass({
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
|
},
|
||||||
|
|
||||||
|
getValue () {
|
||||||
|
return this.state.value;
|
||||||
|
},
|
||||||
|
|
||||||
|
setValue (value) {
|
||||||
|
this.setState({value: value});
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
|
@ -44,10 +44,6 @@ export default React.createClass({
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
getValue () {
|
|
||||||
return this.state.value;
|
|
||||||
},
|
|
||||||
|
|
||||||
render () {
|
render () {
|
||||||
return (
|
return (
|
||||||
<div data-react-toolbox='time-picker'>
|
<div data-react-toolbox='time-picker'>
|
||||||
|
@ -68,5 +64,13 @@ export default React.createClass({
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
|
},
|
||||||
|
|
||||||
|
getValue () {
|
||||||
|
return this.state.value;
|
||||||
|
},
|
||||||
|
|
||||||
|
setValue (value) {
|
||||||
|
this.setState({value: value});
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue