From bf1d1cae92734df73f4c78420294687687951352 Mon Sep 17 00:00:00 2001 From: afc163 Date: Wed, 22 Mar 2017 15:52:29 +0800 Subject: [PATCH] fix narrow className --- package.json | 2 +- src/TimePicker.jsx | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 6f7ad13..10b1df2 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "rc-time-picker", - "version": "2.3.2", + "version": "2.3.3", "description": "React TimePicker", "keywords": [ "react", 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({ prefixCls, placeholder, placement, align, disabled, transitionName, style, className, showHour, showMinute, showSecond, getPopupContainer, name, autoComplete, + use12Hours, } = this.props; const { open, value } = this.state; let popupClassName; - if (!showHour || !showMinute || !showSecond) { + if ((!showHour || !showMinute || !showSecond) && !use12Hours) { popupClassName = `${prefixCls}-panel-narrow`; } return ( -- 2.41.0