@mui/x-date-pickers 8.22.0 → 8.22.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -5,6 +5,107 @@
5
5
  All notable changes to this project will be documented in this file.
6
6
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
7
7
 
8
+ ## 8.22.1
9
+
10
+ _Dec 17, 2025_
11
+
12
+ We'd like to extend a big thank you to the 13 contributors who made this release possible. Here are some highlights ✨:
13
+
14
+ - 🌎 Improve Swedish (sv-SE) locale on the Data Grid
15
+ - 🐞 Bugfixes
16
+
17
+ Special thanks go out to the community members for their valuable contributions:
18
+ @KyeongJooni, @VismaAndreasIvarsson
19
+
20
+ The following team members contributed to this release:
21
+ @alelthomas, @alexfauquette, @arminmeh, @bernardobelchior, @Janpot, @JCQuintas, @mapache-salvaje, @michelengelen, @mj12albert, @prakhargupta1, @romgrk, @siriwatknp
22
+
23
+ ### Data Grid
24
+
25
+ #### `@mui/x-data-grid@8.22.1`
26
+
27
+ - [data grid] Fix column menu keyboard shortcut (#20621) @mj12albert
28
+ - [data grid] Fix row checkbox disabled state on first render and keep cell focusable (ARIA) (#20641) @michelengelen
29
+ - [data grid] Fix tree data selection bug (#20528) @michelengelen
30
+ - [data grid] Prevent clear cell selection on edit mode (#20544) @siriwatknp
31
+ - [data grid] Refactor column merge logic to prioritize defined properties only (#20640) @michelengelen
32
+ - [data grid] Reset row spanning on row expansion change (#20661) @siriwatknp
33
+ - [data grid] Resize newly added rows while resize action is happening (#20676)
34
+ - [l10n] Improve Swedish (sv-SE) locale (#20682) @VismaAndreasIvarsson
35
+
36
+ #### `@mui/x-data-grid-pro@8.22.1` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
37
+
38
+ Same changes as in `@mui/x-data-grid@8.22.1`.
39
+
40
+ #### `@mui/x-data-grid-premium@8.22.1` [![premium](https://mui.com/r/x-premium-svg)](https://mui.com/r/x-premium-svg-link 'Premium plan')
41
+
42
+ Same changes as in `@mui/x-data-grid-pro@8.22.1`, plus:
43
+
44
+ - [DataGridPremium] Import `useId()` from `@mui/utils` to maintain React 17 compatibility (#20635) @arminmeh
45
+
46
+ ### Date and Time Pickers
47
+
48
+ #### `@mui/x-date-pickers@8.22.1`
49
+
50
+ - [pickers] Add minutesStep validation test (#20672) @KyeongJooni
51
+ - [pickers] Fix `onAccept()` returning wrong year after selecting year then month (#20639) @michelengelen
52
+
53
+ #### `@mui/x-date-pickers-pro@8.22.1` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
54
+
55
+ Same changes as in `@mui/x-date-pickers@8.22.1`.
56
+
57
+ ### Charts
58
+
59
+ #### `@mui/x-charts@8.22.1`
60
+
61
+ - [charts] Extract `FocusedPieArc` from `PieArcPlot` (#20613) @alexfauquette
62
+ - [charts] Fix regression on the highlight control (#20627) @alexfauquette
63
+ - [charts] Refactor: `useSelector()` => `store.use()` (#20681) @romgrk
64
+ - [charts] Remove duplicated types (#20694) @alexfauquette
65
+ - [charts] Remove unused generics from bar charts (#20642) @bernardobelchior
66
+ - [charts] Simplify tooltip position getter for pie chart (#20625) @alexfauquette
67
+
68
+ #### `@mui/x-charts-pro@8.22.1` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
69
+
70
+ Same changes as in `@mui/x-charts@8.22.1`, plus:
71
+
72
+ - [charts-pro] Add heatmap performance benchmark (#20695) @bernardobelchior
73
+
74
+ #### `@mui/x-charts-premium@8.22.1` [![premium](https://mui.com/r/x-premium-svg)](https://mui.com/r/x-premium-svg-link 'Premium plan')
75
+
76
+ Same changes as in `@mui/x-charts-pro@8.22.1`, plus:
77
+
78
+ - [charts-premium] Create `BarChartPremium` (#20643) @bernardobelchior
79
+
80
+ ### Tree View
81
+
82
+ #### `@mui/x-tree-view@8.22.1`
83
+
84
+ Internal changes.
85
+
86
+ #### `@mui/x-tree-view-pro@8.22.1` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
87
+
88
+ Same changes as in `@mui/x-tree-view@8.22.1`.
89
+
90
+ ### Codemod
91
+
92
+ #### `@mui/x-codemod@8.22.1`
93
+
94
+ Internal changes.
95
+
96
+ ### Docs
97
+
98
+ - [docs] Add button to GitHub source code for the Data Grid advanced demos (DX-50) (#20633) @alelthomas
99
+ - [docs] Remove `seriesConfig` to prevent future confusion (#20678) @alexfauquette
100
+ - [docs] Revise the Data Grid's API object doc for clarity and style (#20649) @mapache-salvaje
101
+ - [docs] Update list of charts (#20479) @prakhargupta1
102
+
103
+ ### Core
104
+
105
+ - [code-infra] Regression tests improvements (#20441) @Janpot
106
+ - [code-infra] Test utils upgrade (#20592) @Janpot
107
+ - [code-infra] Try to fix the Tree View flacky tests (#20573) @JCQuintas
108
+
8
109
  ## 8.22.0
9
110
 
10
111
  _Dec 11, 2025_
@@ -79,7 +79,11 @@ const useCalendarState = params => {
79
79
  const [calendarState, dispatch] = React.useReducer(reducerFn, {
80
80
  isMonthSwitchingAnimating: false,
81
81
  focusedDay: referenceDate,
82
- currentMonth: adapter.startOfMonth(referenceDate),
82
+ // Keep the time from the reference date when computing the current month anchor.
83
+ // Using startOfMonth would reset the time to 00:00 which breaks expectations
84
+ // that month selections preserve the referenceDate time when no value is provided.
85
+ // See tests: "should use `referenceDate` when no value defined".
86
+ currentMonth: adapter.setDate(referenceDate, 1),
83
87
  slideDirection: 'left'
84
88
  });
85
89
  const isDateDisabled = (0, _useIsDateDisabled.useIsDateDisabled)({
@@ -184,7 +184,11 @@ const MonthCalendar = exports.MonthCalendar = /*#__PURE__*/React.forwardRef(func
184
184
  return;
185
185
  }
186
186
  const currentValue = value && currentMonth && !adapter.isSameYear(value, currentMonth) ? adapter.setYear(value, adapter.getYear(currentMonth)) : value;
187
- const newDate = adapter.setMonth(currentValue ?? referenceDate, month);
187
+ // When no value is selected yet but a year was chosen (via YearCalendar),
188
+ // prefer using currentMonth (which carries the selected year) over the initial referenceDate.
189
+ // Fix for: https://github.com/mui/mui-x/issues/20624
190
+ const baseDateForMonth = currentValue ?? currentMonth ?? referenceDate;
191
+ const newDate = adapter.setMonth(baseDateForMonth, month);
188
192
  handleValueChange(newDate);
189
193
  });
190
194
  const focusMonth = (0, _useEventCallback.default)(month => {
@@ -72,7 +72,11 @@ export const useCalendarState = params => {
72
72
  const [calendarState, dispatch] = React.useReducer(reducerFn, {
73
73
  isMonthSwitchingAnimating: false,
74
74
  focusedDay: referenceDate,
75
- currentMonth: adapter.startOfMonth(referenceDate),
75
+ // Keep the time from the reference date when computing the current month anchor.
76
+ // Using startOfMonth would reset the time to 00:00 which breaks expectations
77
+ // that month selections preserve the referenceDate time when no value is provided.
78
+ // See tests: "should use `referenceDate` when no value defined".
79
+ currentMonth: adapter.setDate(referenceDate, 1),
76
80
  slideDirection: 'left'
77
81
  });
78
82
  const isDateDisabled = useIsDateDisabled({
@@ -176,7 +176,11 @@ export const MonthCalendar = /*#__PURE__*/React.forwardRef(function MonthCalenda
176
176
  return;
177
177
  }
178
178
  const currentValue = value && currentMonth && !adapter.isSameYear(value, currentMonth) ? adapter.setYear(value, adapter.getYear(currentMonth)) : value;
179
- const newDate = adapter.setMonth(currentValue ?? referenceDate, month);
179
+ // When no value is selected yet but a year was chosen (via YearCalendar),
180
+ // prefer using currentMonth (which carries the selected year) over the initial referenceDate.
181
+ // Fix for: https://github.com/mui/mui-x/issues/20624
182
+ const baseDateForMonth = currentValue ?? currentMonth ?? referenceDate;
183
+ const newDate = adapter.setMonth(baseDateForMonth, month);
180
184
  handleValueChange(newDate);
181
185
  });
182
186
  const focusMonth = useEventCallback(month => {
package/esm/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/x-date-pickers v8.22.0
2
+ * @mui/x-date-pickers v8.22.1
3
3
  *
4
4
  * @license MIT
5
5
  * This source code is licensed under the MIT license found in the
package/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/x-date-pickers v8.22.0
2
+ * @mui/x-date-pickers v8.22.1
3
3
  *
4
4
  * @license MIT
5
5
  * This source code is licensed under the MIT license found in the
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mui/x-date-pickers",
3
- "version": "8.22.0",
3
+ "version": "8.22.1",
4
4
  "author": "MUI Team",
5
5
  "description": "The community edition of the MUI X Date and Time Picker components.",
6
6
  "license": "MIT",