diff options
author | afc163 <afc163@gmail.com> | 2016-11-11 14:42:41 +0800 |
---|---|---|
committer | afc163 <afc163@gmail.com> | 2016-11-11 14:42:41 +0800 |
commit | 0c382382d862d0ef864fb4f4cbfd177d38327cf3 (patch) | |
tree | dd97add423e99b257a5198e637306132a3aee13e | |
parent | 21e12b734d9fd34da01e11f594cf28408e0b1951 (diff) | |
download | time-picker-0c382382d862d0ef864fb4f4cbfd177d38327cf3.tar.gz time-picker-0c382382d862d0ef864fb4f4cbfd177d38327cf3.tar.zst time-picker-0c382382d862d0ef864fb4f4cbfd177d38327cf3.zip |
fix panel className
-rw-r--r-- | package.json | 2 | ||||
-rw-r--r-- | src/TimePicker.jsx | 4 |
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 ( |