From 96d3093b14f06cb5c4b94c50c1626b0e1ed0151d Mon Sep 17 00:00:00 2001 From: Jialei Date: Tue, 3 Jan 2017 15:32:43 +0800 Subject: [PATCH] fix: placeholder in time-picker can be empty string (#4446) --- components/time-picker/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/time-picker/index.tsx b/components/time-picker/index.tsx index fd74ee6e1d..25ff1df6c9 100644 --- a/components/time-picker/index.tsx +++ b/components/time-picker/index.tsx @@ -118,7 +118,7 @@ export default class TimePicker extends React.Component { {...props} className={className} value={this.state.value} - placeholder={props.placeholder || this.getLocale().placeholder} + placeholder={props.placeholder === undefined ? this.getLocale().placeholder : props.placeholder} showHour={props.format.indexOf('HH') > -1} showMinute={props.format.indexOf('mm') > -1} showSecond={props.format.indexOf('ss') > -1}