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

DataGrid crashes when manually inputing date for filter #12767

Closed
1 task done
jaugat opened this issue Apr 12, 2024 · 4 comments
Closed
1 task done

DataGrid crashes when manually inputing date for filter #12767

jaugat opened this issue Apr 12, 2024 · 4 comments
Labels
component: data grid This is the name of the generic UI component, not the React module! duplicate This issue or pull request already exists

Comments

@jaugat
Copy link

jaugat commented Apr 12, 2024

Steps to reproduce

  1. Visit https://mui.com/x/react-data-grid/filtering/
  2. Open filter for any date column
  3. Start typing date for filter
  4. Year doesn't allow full input and keeps changing to '0002', '0004', etc... or clears the month and day fields
  5. Enter a 0 to get the input to show '0000' for the year
  6. Page crashes with following stack trace in console:

RangeError: Invalid time value
at Date.toISOString ()
at f (2496-34609919f62b570d.js:1:4366)
at 2496-34609919f62b570d.js:1:5027
at ua (framework-ebfd9aec552fa2e8.js:17:130210)
at iu (framework-ebfd9aec552fa2e8.js:17:155132)
at u (framework-ebfd9aec552fa2e8.js:17:149082)
at x (framework-ebfd9aec552fa2e8.js:41:1364)
at MessagePort.F (framework-ebfd9aec552fa2e8.js:41:1894)

Your environment

Tech Version
Version v7.1.1
Netlify deploy https://660fc3e99f05800008d92905--material-ui-x.netlify.app
Browser Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/123.0.0.0 Safari/537.36

Search keywords:

@github-actions github-actions bot added the status: waiting for maintainer These issues haven't been looked at yet by a maintainer label Apr 12, 2024
@cherniavskii
Copy link
Member

Hey @jaugat
Thanks for reporting this issue!
Good news – the issue has been fixed by #12709 and the fix will be released in the upcoming v7 release 🙂

@cherniavskii cherniavskii added duplicate This issue or pull request already exists component: data grid This is the name of the generic UI component, not the React module! and removed status: waiting for maintainer These issues haven't been looked at yet by a maintainer labels Apr 12, 2024
@cherniavskii cherniavskii closed this as not planned Won't fix, can't repro, duplicate, stale Apr 12, 2024
Copy link

⚠️ This issue has been closed. If you have a similar problem but not exactly the same, please open a new issue.
Now, if you have additional information related to this issue or things that could help future readers, feel free to leave a comment.

@jaugat: How did we do? Your experience with our support team matters to us. If you have a moment, please share your thoughts in this short Support Satisfaction survey.

@cherniavskii
Copy link
Member

And here you go https://github.com/mui/mui-x/releases/tag/v7.2.0

@jaugat
Copy link
Author

jaugat commented Apr 12, 2024

Perfect. Thanks for the quick response!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: data grid This is the name of the generic UI component, not the React module! duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

2 participants