diff --git a/datepicker.js b/datepicker.js index ac6cacde29..c49fb4163c 100644 --- a/datepicker.js +++ b/datepicker.js @@ -91,11 +91,7 @@ class DatePicker extends Component { } onPressMask() { - if (typeof this.props.onPressMask === 'function') { - this.props.onPressMask(); - } else { - this.onPressCancel(); - } + this.onPressCancel(); } onPressCancel() { @@ -380,7 +376,7 @@ class DatePicker extends Component {