support
support copied to clipboard
Set `endDate` max limit ignores in `TaskEditor`
listeners : {
beforeTaskEditShow({ taskRecord, editor }) {
const endDateField = editor.widgetMap.endDate;
endDateField.max = new Date('2025-02-02');
}
}
Hello!
Reaching out because we're trying to dynamically set the max enddate for a specific set of dates. We're using an endDateField (we have no trouble setting a max on the startDateField). But it seems to always be overridden by the default max date (200 years out), whereas we need it to be 10 days out from todays date. Within the beforeCellEditStart listener, we've tried setting column.editor.max, column.max, editor.picker.maxDate and so far nothing. Any ideas where we may be going wrong?
Thanks!