fix: placeholder in time-picker can be empty string (#4446)

pull/4473/head
Jialei 8 years ago committed by Benjy Cui
parent fe706ebf0d
commit 96d3093b14

@ -118,7 +118,7 @@ export default class TimePicker extends React.Component<TimePickerProps, any> {
{...props} {...props}
className={className} className={className}
value={this.state.value} 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} showHour={props.format.indexOf('HH') > -1}
showMinute={props.format.indexOf('mm') > -1} showMinute={props.format.indexOf('mm') > -1}
showSecond={props.format.indexOf('ss') > -1} showSecond={props.format.indexOf('ss') > -1}

Loading…
Cancel
Save