Skip to content
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

Events are fetched with stale start/end after changing firstDay #7666

Open
1 task done
acerix opened this issue Apr 30, 2024 · 0 comments
Open
1 task done

Events are fetched with stale start/end after changing firstDay #7666

acerix opened this issue Apr 30, 2024 · 0 comments
Assignees
Labels

Comments

@acerix
Copy link
Member

acerix commented Apr 30, 2024

Reduced Test Case

https://stackblitz.com/edit/github-9cf81z-xgcta3?file=src%2FDemoApp.vue

Do you understand that if a reduced test case is not provided, we will intentionally delay triaging of your ticket?

  • I understand

Which connector are you using (React/Angular/etc)?

Vue

Bug Description

Click "next firstDay" to increment firstDay and call refetchEvents.

The start and end in the events function do not match the updated view, so the example event does not fill the view.

As a workaround, refetchEvents can be called after a timeout:

https://stackblitz.com/edit/github-9cf81z-jsvoxt?file=src%2FDemoApp.vue

I tried the same in vanilla and it works without the timeout so that issue seems specific to Vue:

https://codepen.io/acerix/pen/abxxrxd?editors=0011

It also seems events should automatically be refetched when the visible range changes after setting firstDay which currently doesn't happen.

Reported in https://fullcalendar.freshdesk.com/a/tickets/8402

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

No branches or pull requests

2 participants