Scheduler - ZonedDate/Date Bug?

1 Answer 111 Views
Scheduler
Brent
Top achievements
Rank 1
Iron
Brent asked on 14 Jun 2021, 05:31 PM

Did I find a bug?

Repro Steps:

Run the "KendoReact Scheduler Demo Preview" demo from https://www.telerik.com/kendo-react-ui/components/scheduler/#toc-kendoreact-scheduler-demo-preview in StackBlitz (to gain easy access to the JavaScript console).

Run the app in a new window (to gain easier access to the JavaScript console).

Open your browser's developer tools to view the JavaScript console.

In the top left corner, to the right of the "today", "<", and ">" buttons, click the date to open the calendar.

Select a different day from the calendar.

Result:

Calendar closes, and Scheduler navigates to the new day.

Expected:

No error messages.

Actual:

In FireFox, I see this:

Warning: Failed prop type: Invalid prop `date` of type `e` supplied to `KendoReactScheduler`, expected instance of `Date`. exports.Scheduler<@https://pwbqpa--run.stackblitz.io/turbo_modules/@progress/kendo-react-scheduler@4.6.0/dist/npm/Scheduler.js:51:20 App@https://pwbqpa--run.stackblitz.io/~/app/main.jsx:53:9

Notes:

It seems the Scheduler sends a ZonedDate when selecting a date by clicking on a day.  It sends a Date in other instances.  Scheduler.d.ts states SchedulerDateChangeEvent.value is a Date, not a Date | ZonedDate.

1 Answer, 1 is accepted

Sort by
0
Stefan
Telerik team
answered on 15 Jun 2021, 10:35 AM

Hello, Brent,

Thank you for reporting this.

I can confirm that this is an issue with the current version of the KendoReact Scheduler.

I have logged this for fixing, and the status can be monitored here:

https://github.com/telerik/kendo-react/issues/963

Currently, there is no workaround available, if one is found it will be added to the issue.

Additionally, I have added Telerik points to your account for bringing this to our attention.

Apologies for the inconvenience this may have caused you.

Regards,
Stefan
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Brent
Top achievements
Rank 1
Iron
commented on 18 Jun 2021, 06:08 PM

No problem. Thanks for confirming this for me.
Tags
Scheduler
Asked by
Brent
Top achievements
Rank 1
Iron
Answers by
Stefan
Telerik team
Share this question
or