Page 1 of 1

[REACT] [Gantt] Always getting "Invalid date input" on manually enter startDate and endDate when format is 'DD.MM.YYYY'

Posted: Mon May 29, 2023 11:22 am
by ext_mkucanda

I started to get this error after I updated @bryntum/gantt and @bryntum/gantt-react packages to a version greater then 5.3.0. On the version 5.3.0 I am not having this error.

I am able to select a date from the calendar picker, but I am not able to edit it manually. An error happens for all date formats that contain '.' character like DD.MM.YYY, D.M.YYYY, etc. (German date formats). However, I do not observe the same error for date formats that contain '/' character like DD/MM/YYYY (UK date format).

When I try to console log date when startDate format is set to 'DD.MM.YYYY', I always get undefined when manually changing the date:

Screenshot 2023-05-29 at 11.18.45.png
Screenshot 2023-05-29 at 11.18.45.png (46.08 KiB) Viewed 266 times

Here is a screen record of the error:

Manually change date bug.mov
(3.42 MiB) Downloaded 20 times

Re: [REACT] [Gantt] Always getting "Invalid date input" on manually enter startDate and endDate when format is 'DD.MM.YY

Posted: Mon May 29, 2023 3:43 pm
by alex.l

Hi, thank you for the report. That's a bug that we need to fix. Here is a link to the ticket to track the status https://github.com/bryntum/support/issues/6868