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

Button "TODAY" add optinal callback method #1587

Closed
cristianManrique opened this issue Mar 17, 2020 · 2 comments
Closed

Button "TODAY" add optinal callback method #1587

cristianManrique opened this issue Mar 17, 2020 · 2 comments
Labels
bug 🐛 Something isn't working

Comments

@cristianManrique
Copy link

Is your feature request related to a problem? Please describe.

It's amazing how now we can load events from API when we change the month.

I create API call to load events with dates from API when we changes a month, It' work.

But I'm always frustrated when we click on "TODAY" button because I can not apply the callback method to re-call API

** User case **
On open Datepickers, I load and display events on the calendar, after I change month, do an API call to reload events with dates, then I click to Today Button, Calendar goes back to actual month with a current date but I wish i can add a callback to re-load events from API.

** Solution **
Like "onMonthChange" method add "onTodayClick" props to add a callback method when we click on TODAY button

@oliviertassinari oliviertassinari added status: incomplete Need more information bug 🐛 Something isn't working and removed status: incomplete Need more information labels Apr 9, 2020
@oliviertassinari
Copy link
Member

oliviertassinari commented Apr 12, 2020

@cristianManrique This sounds like a bug. Shouldn't onMonthChange be called when clicking on the today button change the currently displayed month?

@oliviertassinari
Copy link
Member

I have tested it, it works fine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐛 Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants