Hey I'm trying to set a min/max on start and end date fields of the EventEdit feature.
Currently I'm using 'beforeEventEditShow' to set min/max values.
const startDateField = aEvent.editor.query(aWidget => aWidget.ref === 'startDateField') as DateField;
startDateField.min = period.startDate; // 12-04-2021 12:00
startDateField.max = period.endDate; // 19-04-2021 12:00
const endDateField = aEvent.editor.query(aWidget => aWidget.ref === 'endDateField') as DateField;
endDateField.min = period.startDate; // 12-04-2021 12:00
endDateField.max = period.endDate; // 19-04-2021 12:00
The picker seems to show correct values (e.g. 12th to 19th is enabled), however when I select the 19th it tells me it's an invalid value.
Is this a bug?