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

[datetime2] fix(DateRangePicker3): accept custom month/year formatters #6490

Merged
merged 2 commits into from
Oct 23, 2023

Conversation

adidahiya
Copy link
Contributor

Fixes #6489

Checklist

  • Includes tests
  • Update documentation

Changes proposed in this pull request:

Update <DatePicker3Caption> implementation to use formatters reconciled by react-day-picker (either the default date-fns formatter, which matches the previous behavior of this component, or a custom user-provided formatter set in dayPickerProps on <DateRangePicker3> or <DateRangeInput3>.

Reviewers should focus on:

  • New test cases
  • No regressions

Screenshot

image

@adidahiya
Copy link
Contributor Author

[datetime2] fix(DateRangePicker3): accept custom formatters for month/year caption

Build artifact links for this commit: documentation | landing | table | demo

This is an automated comment from the deploy-preview CircleCI job.

@adidahiya
Copy link
Contributor Author

use OptionProps type, set value correctly

Build artifact links for this commit: documentation | landing | table | demo

This is an automated comment from the deploy-preview CircleCI job.

@adidahiya adidahiya merged commit b9adf0a into develop Oct 23, 2023
@adidahiya adidahiya deleted the ad/fix-drp3-custom-formatters branch October 23, 2023 19:12
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.

DateRangePicker3 with non-contiguous months does not accept custom formatters
1 participant