aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorafc163 <afc163@gmail.com>2017-03-22 15:52:29 +0800
committerafc163 <afc163@gmail.com>2017-03-22 15:52:29 +0800
commitbf1d1cae92734df73f4c78420294687687951352 (patch)
tree9c7ccae4699681d1c3212e51ad4bdfc91f1e28da /src
parente8afb726f43d98255405f3a0250809d9d3ae33b5 (diff)
downloadtime-picker-bf1d1cae92734df73f4c78420294687687951352.tar.gz
time-picker-bf1d1cae92734df73f4c78420294687687951352.tar.zst
time-picker-bf1d1cae92734df73f4c78420294687687951352.zip
fix narrow className2.3.3
Diffstat (limited to 'src')
-rw-r--r--src/TimePicker.jsx3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/TimePicker.jsx b/src/TimePicker.jsx
index 7065333..d94ed94 100644
--- a/src/TimePicker.jsx
+++ b/src/TimePicker.jsx
@@ -206,10 +206,11 @@ const Picker = React.createClass({
206 prefixCls, placeholder, placement, align, 206 prefixCls, placeholder, placement, align,
207 disabled, transitionName, style, className, showHour, 207 disabled, transitionName, style, className, showHour,
208 showMinute, showSecond, getPopupContainer, name, autoComplete, 208 showMinute, showSecond, getPopupContainer, name, autoComplete,
209 use12Hours,
209 } = this.props; 210 } = this.props;
210 const { open, value } = this.state; 211 const { open, value } = this.state;
211 let popupClassName; 212 let popupClassName;
212 if (!showHour || !showMinute || !showSecond) { 213 if ((!showHour || !showMinute || !showSecond) && !use12Hours) {
213 popupClassName = `${prefixCls}-panel-narrow`; 214 popupClassName = `${prefixCls}-panel-narrow`;
214 } 215 }
215 return ( 216 return (