diff options
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) { |