aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--package.json2
-rw-r--r--src/TimePicker.jsx4
2 files changed, 3 insertions, 3 deletions
diff --git a/package.json b/package.json
index 433f3bc..1a4d828 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
1{ 1{
2 "name": "rc-time-picker", 2 "name": "rc-time-picker",
3 "version": "2.2.0", 3 "version": "2.2.1",
4 "description": "React TimePicker", 4 "description": "React TimePicker",
5 "keywords": [ 5 "keywords": [
6 "react", 6 "react",
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 (