fix detachDatePickerEvents