Skip to content

Commit 0c38238

Browse files
committed
fix panel className
1 parent 21e12b7 commit 0c38238

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "rc-time-picker",
3-
"version": "2.2.0",
3+
"version": "2.2.1",
44
"description": "React TimePicker",
55
"keywords": [
66
"react",

src/TimePicker.jsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -187,11 +187,11 @@ const Picker = React.createClass({
187187
const {
188188
prefixCls, placeholder, placement, align,
189189
disabled, transitionName, style, className, showHour,
190-
showSecond, getPopupContainer,
190+
showMinute, showSecond, getPopupContainer,
191191
} = this.props;
192192
const { open, value } = this.state;
193193
let popupClassName;
194-
if (!showHour || !showSecond) {
194+
if (!showHour || !showMinute || !showSecond) {
195195
popupClassName = `${prefixCls}-panel-narrow`;
196196
}
197197
return (

0 commit comments

Comments
 (0)