Our pure JavaScript Scheduler component


Post by pedro rodriguez »

Hi! I wanted to comment that we tried to update to the latest version, but it triggered an issue regarding the viewPreset prop, when changing dynamically the preset id we found an error.
I share a screenshot from the source code.
Need to say that the change of view presets works fine when clicking on the scheduler header, but it breaks when we change it dynamically from an outside control.
zoomLevel is a number state coming from a control outside of the scheduler and passed trough props.
Is there a way we can provide a centerDate for the scheduler in some way as you do internally?

We have this working on version 5.0.6 with no problem.

Thanks!

Attachments
Screenshot 2022-09-30 at 16.57.09.png
Screenshot 2022-09-30 at 16.57.09.png (298.62 KiB) Viewed 151 times
Screenshot 2022-09-30 at 16.44.24.png
Screenshot 2022-09-30 at 16.44.24.png (226.14 KiB) Viewed 151 times

Post by marcio »

Hey pedro rodriguez,

Thanks for the report. Could you please provide a minimum runnable project with your configuration and the behavior that you described?? The prints aren't providing too much context to define what could be causing the wrong behavior. You can get one of our React demos and set it up as similar as possible to your case, and then zip it and share it here. You can check the guidelines on this link viewtopic.php?f=1&t=772

Best regards,
Márcio


Post Reply