diff options
author | MG12 <wuzhao.mail@gmail.com> | 2015-11-19 11:59:53 +0800 |
---|---|---|
committer | MG12 <wuzhao.mail@gmail.com> | 2015-11-19 11:59:53 +0800 |
commit | e75ed0c6b89282cf475e94d6d5ad0fb35803f974 (patch) | |
tree | 2a98153d4d5d7953ec60d5e7a93e42d649cf54bf /src/TimePicker.jsx | |
parent | cadce7b210a339bb701f639c4bff65a2157e13de (diff) | |
download | time-picker-e75ed0c6b89282cf475e94d6d5ad0fb35803f974.tar.gz time-picker-e75ed0c6b89282cf475e94d6d5ad0fb35803f974.tar.zst time-picker-e75ed0c6b89282cf475e94d6d5ad0fb35803f974.zip |
Diffstat (limited to 'src/TimePicker.jsx')
-rw-r--r-- | src/TimePicker.jsx | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/TimePicker.jsx b/src/TimePicker.jsx index a6ea7a9..98a1754 100644 --- a/src/TimePicker.jsx +++ b/src/TimePicker.jsx | |||
@@ -50,8 +50,11 @@ const Picker = React.createClass({ | |||
50 | 50 | ||
51 | getInitialState() { | 51 | getInitialState() { |
52 | this.savePanelRef = refFn.bind(this, 'panelInstance'); | 52 | this.savePanelRef = refFn.bind(this, 'panelInstance'); |
53 | const { open, value } = this.props; | 53 | const { open, defaultValue } = this.props; |
54 | return { open, value }; | 54 | return { |
55 | open: open, | ||
56 | value: defaultValue, | ||
57 | }; | ||
55 | }, | 58 | }, |
56 | 59 | ||
57 | componentWillReceiveProps(nextProps) { | 60 | componentWillReceiveProps(nextProps) { |