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

Fix DatePicker localization issues #1575

Merged
merged 4 commits into from
Jan 18, 2023
Merged

Fix DatePicker localization issues #1575

merged 4 commits into from
Jan 18, 2023

Conversation

Janpot
Copy link
Member

@Janpot Janpot commented Jan 18, 2023

Wanted to remove onChangeHandler, then noticed a few bugs:

  • The DatePicker doesn't show in my locale even though I have format unset. I fixed the LocalizationProvider and added async loading of locales. More locales to be added to the list. Locale detection has to be improved, this PR just suggests the methodology.
  • Missing dependencies for @mui/toolpad-components
  • Removed as any, there seems to be an issue with our dependency tree. Never use as any to "fix" problems that are not well understood. Use @ts-expect-error and provide a path towards a solution. Usually it will be a link to a github ticket.
  • Added helper text for value
  • Fix types of value and onChange to be a string

@oliviertassinari oliviertassinari requested a deployment to date-picker - toolpad-db PR #1575 January 18, 2023 10:07 — with Render Abandoned
@oliviertassinari oliviertassinari temporarily deployed to date-picker - toolpad PR #1575 January 18, 2023 10:08 — with Render Destroyed
@Janpot Janpot added the bug 🐛 Something doesn't work label Jan 18, 2023
@oliviertassinari oliviertassinari temporarily deployed to date-picker - toolpad PR #1575 January 18, 2023 11:08 — with Render Destroyed
@Janpot Janpot marked this pull request as ready for review January 18, 2023 12:48
@Janpot Janpot merged commit 2ed9284 into master Jan 18, 2023
@Janpot Janpot deleted the date-picker branch January 18, 2023 13:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐛 Something doesn't work
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants