fix: should show correct panel, close: #6764 point 3

This commit is contained in:
Benjy Cui 2017-07-12 14:00:20 +08:00
parent a481134cea
commit 27a17428de

View File

@ -200,7 +200,7 @@ export default class RangePicker extends React.Component<any, any> {
dateInputPlaceholder={[startPlaceholder, endPlaceholder]}
locale={locale.lang}
onOk={onOk}
value={showDate || pickerValueAdapter(props.defaultPickerValue) || pickerValueAdapter(moment())}
value={showDate || pickerValueAdapter(props.defaultPickerValue || value || moment())}
onValueChange={this.handleShowDateChange}
hoverValue={hoverValue}
onHoverChange={this.handleHoverChange}