diff options
author | Antony Shaleynikov <shaleynikov@gmail.com> | 2017-03-08 22:50:57 +0300 |
---|---|---|
committer | Antony Shaleynikov <shaleynikov@gmail.com> | 2017-03-08 22:50:57 +0300 |
commit | 4f26f23b14ec9f1aa6260b1eee9a190639530b45 (patch) | |
tree | 593b73049f75bbb14914f514b80bdc02c3622cc5 /src/Combobox.jsx | |
parent | 5423edb11fac7f8ed5d35ba739878ee4435fa5af (diff) | |
download | time-picker-4f26f23b14ec9f1aa6260b1eee9a190639530b45.tar.gz time-picker-4f26f23b14ec9f1aa6260b1eee9a190639530b45.tar.zst time-picker-4f26f23b14ec9f1aa6260b1eee9a190639530b45.zip |
Fixed unwanted exception on missed value
Diffstat (limited to 'src/Combobox.jsx')
-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 | ||