We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
The current event handlers such as onDayClick have a signature which puts the Synthetic Event as first argument:
onDayClick
onDayClick={ (e, day, modifiers) => doSomething(day); }
however it is expected the most common arguments to be day and modifiers:
day
modifiers
onDayClick={ (day, modifiers, e) => doSomething(day); }
which can lead to a more concise, readable code:
onDayClick={ doSomething }
The text was updated successfully, but these errors were encountered:
Change function’s arguments signature (#256)
500d7d2
1b844a7
No branches or pull requests
The current event handlers such as
onDayClick
have a signature which puts the Synthetic Event as first argument:however it is expected the most common arguments to be
day
andmodifiers
:which can lead to a more concise, readable code:
The text was updated successfully, but these errors were encountered: