diff options
Diffstat (limited to 'src/module/Panel.jsx')
-rw-r--r-- | src/module/Panel.jsx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/module/Panel.jsx b/src/module/Panel.jsx index 94d3842..4c3d071 100644 --- a/src/module/Panel.jsx +++ b/src/module/Panel.jsx | |||
@@ -78,8 +78,8 @@ const Panel = React.createClass({ | |||
78 | const { locale, prefixCls, placeholder, disabledHours, disabledMinutes, disabledSeconds, hideDisabledOptions, allowEmpty, showHour, showSecond, formatter, gregorianCalendarLocale } = this.props; | 78 | const { locale, prefixCls, placeholder, disabledHours, disabledMinutes, disabledSeconds, hideDisabledOptions, allowEmpty, showHour, showSecond, formatter, gregorianCalendarLocale } = this.props; |
79 | const value = this.state.value; | 79 | const value = this.state.value; |
80 | const disabledHourOptions = disabledHours(); | 80 | const disabledHourOptions = disabledHours(); |
81 | const disabledMinuteOptions = disabledMinutes(value.getHourOfDay()); | 81 | const disabledMinuteOptions = disabledMinutes(value ? value.getHourOfDay() : null); |
82 | const disabledSecondOptions = disabledSeconds(value.getHourOfDay(), value.getMinutes()); | 82 | const disabledSecondOptions = disabledSeconds(value ? value.getHourOfDay() : null, value ? value.getMinutes() : null); |
83 | const hourOptions = generateOptions(24, disabledHourOptions, hideDisabledOptions); | 83 | const hourOptions = generateOptions(24, disabledHourOptions, hideDisabledOptions); |
84 | const minuteOptions = generateOptions(60, disabledMinuteOptions, hideDisabledOptions); | 84 | const minuteOptions = generateOptions(60, disabledMinuteOptions, hideDisabledOptions); |
85 | const secondOptions = generateOptions(60, disabledSecondOptions, hideDisabledOptions); | 85 | const secondOptions = generateOptions(60, disabledSecondOptions, hideDisabledOptions); |