Skip to content

Conversation

@michelengelen
Copy link
Member

@michelengelen michelengelen commented Oct 21, 2025

This should keep the invalid state consistent during different phases of the input cycle in the pickers.

This fixes some validation bugs:

Consistent invalid field state
Screenshot 2025-10-30 at 14 50 57

Invalid state "shuffling"
Before:

Screen.Recording.2025-10-30.at.14.52.48.mov

After:

Screen.Recording.2025-10-30.at.14.53.05.mov

Fixes #17967
Fixes #18039
Fixes #18299
Fixes #19777

@michelengelen michelengelen self-assigned this Oct 21, 2025
@michelengelen michelengelen added type: regression A bug, but worse, it used to behave as expected. scope: pickers Changes related to the date/time pickers. labels Oct 21, 2025
@mui-bot
Copy link

mui-bot commented Oct 21, 2025

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

Bundle size report

Bundle Parsed size Gzip size
@mui/x-data-grid 0B(0.00%) 0B(0.00%)
@mui/x-data-grid-pro 0B(0.00%) 0B(0.00%)
@mui/x-data-grid-premium 0B(0.00%) 0B(0.00%)
@mui/x-charts 0B(0.00%) 0B(0.00%)
@mui/x-charts-pro 0B(0.00%) 0B(0.00%)
@mui/x-charts-premium 0B(0.00%) 0B(0.00%)
@mui/x-date-pickers 🔺+189B(+0.08%) 🔺+48B(+0.08%)
@mui/x-date-pickers-pro 🔺+179B(+0.06%) 🔺+64B(+0.08%)
@mui/x-tree-view 0B(0.00%) 0B(0.00%)
@mui/x-tree-view-pro 0B(0.00%) 0B(0.00%)

Details of bundle changes

Generated by 🚫 dangerJS against b762287

@flaviendelangle flaviendelangle removed the request for review from LukasTy October 28, 2025 14:53
Copy link
Member

@siriwatknp siriwatknp left a comment

Choose a reason for hiding this comment

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

From a rough review, I see:

  • some comments are not necessary as the code already explain the logic
  • a PR description would be nice to explain how this PR fixes a lot of issues at the same time.

I will do intensive review soon.

Copy link
Member

@siriwatknp siriwatknp left a comment

Choose a reason for hiding this comment

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

👍 Nicely done. Only one comment, better to wait Flavien's response before merging.

Copy link
Member

@siriwatknp siriwatknp left a comment

Choose a reason for hiding this comment

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

Oh wait, it breaks this behavior. If it's invalid, I cannot change other section.
I tested the https://deploy-preview-20040--material-ui-x.netlify.app/x/react-date-pickers/date-picker/ (production works fine)

Screen.Recording.2568-11-06.at.10.58.13.mov

Copy link
Member

@flaviendelangle flaviendelangle 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 it 🙏

@siriwatknp
Copy link
Member

The latest commit does not fix #17967

Screen.Recording.2568-11-06.at.10.58.13.mov

Signed-off-by: michel <[email protected]>
Signed-off-by: michel <[email protected]>
Copy link
Member

@siriwatknp siriwatknp left a comment

Choose a reason for hiding this comment

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

👍

@michelengelen michelengelen merged commit 5dfa026 into mui:master Nov 6, 2025
21 checks passed
@michelengelen michelengelen deleted the bugfix/17967 branch November 6, 2025 09:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

scope: pickers Changes related to the date/time pickers. type: regression A bug, but worse, it used to behave as expected.

Projects

None yet

4 participants