@ -24,14 +24,14 @@ export default function createPicker(TheCalendar) {
}
},
clearSelection = (e) => {
clearSelection(e) {
e.preventDefault();
e.stopPropagation();
this.setState({ value: null });
this.handleChange(null);
handleChange = (value) => {
handleChange(value) {
const props = this.props;
if (!('value' in props)) {
this.setState({ value });