Skip to content

timeSteps don't work properly in v0.30.0-beta.1 #946

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
VasylMalanii opened this issue Dec 9, 2024 · 0 comments · Fixed by #951
Closed

timeSteps don't work properly in v0.30.0-beta.1 #946

VasylMalanii opened this issue Dec 9, 2024 · 0 comments · Fixed by #951

Comments

@VasylMalanii
Copy link

Describe the bug
Timeline doesn't generate proper intervals like it does in v0.28.

To Reproduce

  1. Create project with react-calendar-timeline (v0.30.0-beta.1 or v0.30.0-beta.2)
  2. Render any calendar with
    timeSteps={{
    second: 1,
    minute: 1,
    hour: 4,
    day: 1,
    month: 1,
    year: 1,
    }}
  3. Zoom in to see hours on timeline.
  4. Timeline sometimes doesn't render proper intervals (for example, 23:00, 03:00, 07:00, 11:00, 15:00, 19:00 instead of 00:00, 04:00, 08:00, 12:00, 16:00, 20:00).
    v0 30_1

https://codesandbox.io/p/sandbox/timeline-demo-timesteps-bug-kw8wpg (it's example with v0.28 because v0.30.0-beta.1 fails in codesandbox)

Expected behavior
v0 28_1

Library Version
v0.30.0-beta.1
v0.30.0-beta.2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant