Skip to content

Conversation

@localyost3000
Copy link

Explicit === null does not handle when value is undefined. using a loose equal (==) covers both null and undefined cases, preventing errors in invalid datetimes

Changelog

Properly handle luxon isValid calls when the date value is undefined (eg when a parser like fromIso fails)

Explicit `=== null` does not handle when value is `undefined`. using a loose equal (`==`) covers both null and undefined cases, preventing errors in invalid datetimes

Signed-off-by: Adam Yost <[email protected]>
@localyost3000 localyost3000 changed the title looser undefined value comparison [date-picker] looser undefined value comparison Nov 20, 2025
@mui-bot
Copy link

mui-bot commented Nov 20, 2025

Deploy preview: https://deploy-preview-20415--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 0B(0.00%) 0B(0.00%)
@mui/x-date-pickers-pro 0B(0.00%) 0B(0.00%)
@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 3d9c75e

@zannager zannager added the scope: pickers Changes related to the date/time pickers. label Nov 24, 2025
@zannager zannager changed the title [date-picker] looser undefined value comparison [pickers] looser undefined value comparison Nov 24, 2025
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.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants