diff options
Diffstat (limited to 'src/TimePicker.jsx')
-rw-r--r-- | src/TimePicker.jsx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/TimePicker.jsx b/src/TimePicker.jsx index e9f18a9..ec3eda0 100644 --- a/src/TimePicker.jsx +++ b/src/TimePicker.jsx | |||
@@ -187,11 +187,11 @@ const Picker = React.createClass({ | |||
187 | const { | 187 | const { |
188 | prefixCls, placeholder, placement, align, | 188 | prefixCls, placeholder, placement, align, |
189 | disabled, transitionName, style, className, showHour, | 189 | disabled, transitionName, style, className, showHour, |
190 | showSecond, getPopupContainer, | 190 | showMinute, showSecond, getPopupContainer, |
191 | } = this.props; | 191 | } = this.props; |
192 | const { open, value } = this.state; | 192 | const { open, value } = this.state; |
193 | let popupClassName; | 193 | let popupClassName; |
194 | if (!showHour || !showSecond) { | 194 | if (!showHour || !showMinute || !showSecond) { |
195 | popupClassName = `${prefixCls}-panel-narrow`; | 195 | popupClassName = `${prefixCls}-panel-narrow`; |
196 | } | 196 | } |
197 | return ( | 197 | return ( |