Once a date is selected I would like the popup to close. Currently, it only closes when clicking outside of the popup or on escape, even having selected a date. Is this achievable with an onClick function?
<DateInput
localization={String(i18n.lng).substr(0, 2)}
placeholder={t("flot.split.documente-ton-oeuvre.documenter.date-placeholder")}
value={this.props.value}
onChange={(event, { value }) => {
// make sure the date is vaid for momentjs
let a = value.substr(6, 4),
m = value.substr(3, 2),
j = value.substr(0, 2);
this.props.onChange(`${a}-${m}-${j}`);
}}
icon="calendar outline"
/>