diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/Combobox.jsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Combobox.jsx b/src/Combobox.jsx index 36b61cc..477c5ee 100644 --- a/src/Combobox.jsx +++ b/src/Combobox.jsx | |||
@@ -170,7 +170,7 @@ const Combobox = React.createClass({ | |||
170 | }, | 170 | }, |
171 | 171 | ||
172 | isAM() { | 172 | isAM() { |
173 | const { value } = this.props; | 173 | const value = (this.props.value || this.props.defaultOpenValue); |
174 | return value.hour() >= 0 && value.hour() < 12; | 174 | return value.hour() >= 0 && value.hour() < 12; |
175 | }, | 175 | }, |
176 | 176 | ||