I would like to close the calander, if the user clicks again on the input field.
Do you know a good way to realise that?
const picker = new easepick.create({
element: document.getElementById('datepicker'),
css: [
'https://cdn.jsdelivr.net/npm/@easepick/bundle@1.2.1/dist/index.css',
],
calendars: 2,
grid: 2,
plugins: ['LockPlugin','RangePlugin'],
LockPlugin: {
minDate: new Date(),
},
RangePlugin: {
tooltip: true,
startDate: new Date(),
endDate: new Date('2027-12-31'),
locale: {
one: 'day',
other: 'days',},
},
});
Thank you in advance for your help!