Browse Source

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

pull/4473/head
Jialei 8 years ago
committed by Benjy Cui
parent
commit
96d3093b14
  1. 2
      components/time-picker/index.tsx

2
components/time-picker/index.tsx

@ -118,7 +118,7 @@ export default class TimePicker extends React.Component<TimePickerProps, any> {
{...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}

Loading…
Cancel
Save