mui / mui-x

MUI X: Build complex and data-rich applications using a growing list of advanced React components, like the Data Grid, Date and Time Pickers, Charts, and more!
https://mui.com/x/
4.45k stars 1.3k forks source link

[pickers] AdapterMomentJalaali breaks when selecting date #12794

Closed Amin-Fathi closed 5 months ago

Amin-Fathi commented 6 months ago

Related page

https://mui.com/x/react-date-pickers/calendar-systems/

Kind of issue

Unclear explanations

Issue description

I need example with AdapterMomentJalaali , when use this library i have bug, when open modal calendar and click on the day this day convert to 1 and then not work any thing. Example problem

Screenshot 2024-04-16 111738

@types/moment-jalaali": "^0.7.9", "moment": "^2.30.1", "moment-jalaali": "^0.10.0", "@mui/lab": "^5.0.0-alpha.169", "@mui/material": "^5.15.14", "@mui/x-date-pickers": "^7.2.0",

Context

No response

Search keywords: AdapterMomentJalaali

michelengelen commented 6 months ago

@LukasTy I am lost on this one 🤷🏼 Could you maybe provide some info?

LukasTy commented 6 months ago

I am lost on this one 🤷🏼 Could you maybe provide some info?

I haven't investigated it yet. Firstly, does it work on v6? 🤔

Amin-Fathi commented 6 months ago

Example: https://stackblitz.com/edit/vitejs-vite-nw71cx?file=src%2FApp.tsx @LukasTy @michelengelen 🙏🙏

LukasTy commented 6 months ago

@Amin-Fathi @michelengelen I've tracked down that the issue started happening from v6.4.0. So, it looks like a regression. 🙈

flaviendelangle commented 6 months ago

I guess the main suspect is #8735 then :cry:

shahlamahdavi68 commented 6 months ago

I have exactly this problem ! By selecting a date, it is not possible to change it and it will not work.

github-actions[bot] commented 5 months ago

:warning: 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.

@Amin-Fathi: 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.