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

feat(Calendar): add support for onMonthChange on <Calendar> #3150

Merged
merged 3 commits into from
Apr 7, 2023

Conversation

simonguo
Copy link
Member

@simonguo simonguo commented Apr 7, 2023

When clicking on the previous month or next month or directly selecting the month, the onMonthChange event will be triggered and the Date object of the current month will be returned.

<Calendar
  onMonthChange={(date: Date) => {
    console.log(Date);
  }}
/>;

@vercel
Copy link

vercel bot commented Apr 7, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
rsuite-nextjs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 7, 2023 3:54am
1 Ignored Deployment
Name Status Preview Comments Updated (UTC)
rsuite-v4 ⬜️ Ignored (Inspect) Apr 7, 2023 3:54am

@codesandbox-ci
Copy link

codesandbox-ci bot commented Apr 7, 2023

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit b4c1d32:

Sandbox Source
rsuite-tp-ci Configuration

@codecov
Copy link

codecov bot commented Apr 7, 2023

Codecov Report

Patch coverage: 100.00% and no project coverage change.

Comparison is base (61a2eb7) 93.42% compared to head (b4c1d32) 93.43%.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #3150   +/-   ##
=======================================
  Coverage   93.42%   93.43%           
=======================================
  Files         562      562           
  Lines       20362    20384   +22     
  Branches     2739     2740    +1     
=======================================
+ Hits        19023    19045   +22     
  Misses        694      694           
  Partials      645      645           
Flag Coverage Δ
ChromeCi 93.39% <100.00%> (+<0.01%) ⬆️
Firefox 92.69% <100.00%> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
src/Calendar/CalendarHeader.tsx 90.90% <ø> (ø)
src/Calendar/Calendar.tsx 89.65% <100.00%> (+1.65%) ⬆️
src/Calendar/test/CalendarContainerSpec.tsx 100.00% <100.00%> (ø)
src/Calendar/test/CalendarSpec.tsx 100.00% <100.00%> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

@SevenOutman SevenOutman merged commit 8dfe9d6 into main Apr 7, 2023
@SevenOutman SevenOutman deleted the feat/Calendar branch April 7, 2023 06:30
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 this pull request may close these issues.

2 participants