Skip to content

[DateRangePicker] Allow to override the format in the field #17972

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

Merged

Conversation

flaviendelangle
Copy link
Member

Fixes #17898

@flaviendelangle flaviendelangle added type: bug A bug or unintended behavior in the components. scope: pickers Changes or issues related to the pickers product labels May 23, 2025
@flaviendelangle flaviendelangle self-assigned this May 23, 2025
@flaviendelangle flaviendelangle marked this pull request as ready for review May 23, 2025 06:12
@flaviendelangle flaviendelangle force-pushed the override-date-range-format branch 2 times, most recently from 49b1e2c to 33e61cc Compare May 23, 2025 06:12
@flaviendelangle flaviendelangle force-pushed the override-date-range-format branch from 33e61cc to 5df58ce Compare May 23, 2025 06:13
@mui-bot
Copy link

mui-bot commented May 23, 2025

Deploy preview: https://deploy-preview-17972--material-ui-x.netlify.app/

Bundle size report

Total Size Change:${\tiny{\color{red}▲}}$+60B(0.00%) - Total Gzip Change:${\tiny{\color{red}▲}}$+34B(0.00%)
Files: 118 total (0 added, 0 removed, 16 changed)

Show 16 more bundle changes

@mui/x-date-pickers-proparsed:${\tiny{\color{red}▲}}$+20B(+0.01%) gzip:${\tiny{\color{red}▲}}$+22B(+0.03%)
@mui/x-date-pickers-pro/DateRangePickerparsed:${\tiny{\color{red}▲}}$+20B(+0.01%) gzip:${\tiny{\color{red}▲}}$+5B(+0.01%)
@mui/x-date-pickers-pro/DesktopDateRangePickerparsed:${\tiny{\color{red}▲}}$+10B(+0.01%) gzip:${\tiny{\color{red}▲}}$+4B(+0.01%)
@mui/x-date-pickers-pro/MobileDateRangePickerparsed:${\tiny{\color{red}▲}}$+10B(+0.01%) gzip:${\tiny{\color{red}▲}}$+5B(+0.01%)
@mui/x-charts-proparsed: 0B(0.00%) gzip:${\tiny{\color{red}▲}}$+1B(0.00%)
@mui/x-charts-pro/BarChartProparsed: 0B(0.00%) gzip:${\tiny{\color{green}▼}}$-2B(0.00%)
@mui/x-charts-pro/ChartContainerProparsed: 0B(0.00%) gzip:${\tiny{\color{green}▼}}$-1B(0.00%)
@mui/x-charts-pro/ChartDataProviderProparsed: 0B(0.00%) gzip:${\tiny{\color{red}▲}}$+1B(0.00%)
@mui/x-charts-pro/FunnelChartparsed: 0B(0.00%) gzip:${\tiny{\color{red}▲}}$+1B(0.00%)
@mui/x-charts-pro/ScatterChartProparsed: 0B(0.00%) gzip:${\tiny{\color{green}▼}}$-1B(0.00%)
@mui/x-data-grid-pro/DataGridProparsed: 0B(0.00%) gzip:${\tiny{\color{red}▲}}$+1B(0.00%)
@mui/x-date-pickers-pro/DateRangeCalendarparsed: 0B(0.00%) gzip:${\tiny{\color{green}▼}}$-2B(-0.01%)
@mui/x-date-pickers-pro/DateRangePickerDayparsed: 0B(0.00%) gzip:${\tiny{\color{red}▲}}$+1B(+0.01%)
@mui/x-date-pickers-pro/DesktopDateTimeRangePickerparsed: 0B(0.00%) gzip:${\tiny{\color{green}▼}}$-1B(0.00%)
@mui/x-tree-view-proparsed: 0B(0.00%) gzip:${\tiny{\color{green}▼}}$-1B(0.00%)
@mui/x-tree-view-pro/RichTreeViewProparsed: 0B(0.00%) gzip:${\tiny{\color{red}▲}}$+1B(0.00%)

Details of bundle changes

Generated by 🚫 dangerJS against 5df58ce

Copy link
Member

@michelengelen michelengelen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@michelengelen
Copy link
Member

works great ... thanks @flaviendelangle
Screenshot 2025-05-23 at 08 53 07

Copy link
Member

@LukasTy LukasTy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for taking care of this! 🙏 💙

@flaviendelangle flaviendelangle merged commit ce256d9 into mui:master May 23, 2025
25 checks passed
@flaviendelangle flaviendelangle deleted the override-date-range-format branch May 23, 2025 07:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
scope: pickers Changes or issues related to the pickers product type: bug A bug or unintended behavior in the components.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[pickers][DateRangePicker] format prop is not working
4 participants