aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorafc163 <afc163@gmail.com>2016-11-11 14:42:41 +0800
committerafc163 <afc163@gmail.com>2016-11-11 14:42:41 +0800
commit0c382382d862d0ef864fb4f4cbfd177d38327cf3 (patch)
treedd97add423e99b257a5198e637306132a3aee13e /src
parent21e12b734d9fd34da01e11f594cf28408e0b1951 (diff)
downloadtime-picker-0c382382d862d0ef864fb4f4cbfd177d38327cf3.tar.gz
time-picker-0c382382d862d0ef864fb4f4cbfd177d38327cf3.tar.zst
time-picker-0c382382d862d0ef864fb4f4cbfd177d38327cf3.zip
fix panel className
Diffstat (limited to 'src')
-rw-r--r--src/TimePicker.jsx4
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 (