fix react@15 warning, ref #1340

This commit is contained in:
afc163 2016-04-07 18:07:18 +08:00
parent e1e68c9b38
commit b155ba15cb
2 changed files with 3 additions and 3 deletions

View File

@ -123,14 +123,14 @@ export default class RangePicker extends React.Component {
<input
disabled={disabled}
onChange={props.handleInputChange}
value={start && props.getFormatter().format(start)}
value={start ? props.getFormatter().format(start) : ''}
placeholder={startPlaceholder}
className="ant-calendar-range-picker-input" />
<span className="ant-calendar-range-picker-separator"> ~ </span>
<input
disabled={disabled}
onChange={props.handleInputChange}
value={end && props.getFormatter().format(end)}
value={end ? props.getFormatter().format(end) : ''}
placeholder={endPlaceholder}
className="ant-calendar-range-picker-input" />
<span className="ant-calendar-picker-icon" />

View File

@ -105,7 +105,7 @@ export default function createPicker(TheCalendar) {
<input
disabled={props.disabled}
onChange={props.handleInputChange}
value={value && props.getFormatter().format(value)}
value={value ? props.getFormatter().format(value) : ''}
placeholder={placeholder}
className={props.pickerInputClass} />
<span className="ant-calendar-picker-icon" />