mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-26 12:10:06 +08:00
Merge branch 'master' of github.com:ant-design/ant-design
This commit is contained in:
commit
a11206f7ad
@ -72,7 +72,11 @@ export default function createPicker(TheCalendar) {
|
||||
let calendarHandler: Object = {
|
||||
onOk: this.handleChange,
|
||||
// fix https://github.com/ant-design/ant-design/issues/1902
|
||||
onSelect: value => this.handleChange(value),
|
||||
onSelect: (value, cause) => {
|
||||
if (cause && cause.source === 'todayButton') {
|
||||
this.handleChange(value);
|
||||
}
|
||||
},
|
||||
};
|
||||
if (props.showTime) {
|
||||
pickerChangeHandler = {};
|
||||
|
Loading…
Reference in New Issue
Block a user