-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
[pickers] It is no longer possible to override the placeholder value #12573
Comments
@JcPires I can confirm that this is a regression to |
@michelengelen Is there an ETA on when this might get fixed? It is breaking our tests which were relying on this feature |
@heath-freenome It will at worse be released in one week 👍 |
@JcPires, @heath-freenome do note that the |
How did we do @JcPires? |
If I understand correctly, overriding the placeholders in x-date-pickers v7 will only work with MUI v6? Can something be done to make it work with MUI v5? I want to use DateTimeRangePicker with MUI v5. |
@oskarkk could you clarify your question?
|
@LukasTy I had a problem with placeholders not working with MUI v5.15.14, but it has magically started working, both in my code where I had the problem and in codesandbox, so I don't know. (In the tests added in the PR I saw "v6 only" so I was assuming that maybe I shouldn't use it with MUI v5.) But there's still a smaller issue with placeholders in pickers v7: undefined or empty string doesn't remove placeholder, it still leaves the default "hh:mm" etc. Here it's working with pickers v6: https://codesandbox.io/p/sandbox/clf85l Not working with pickers v7: https://codesandbox.io/p/sandbox/mui-time-picker-placeholder-overrride-forked-zsyj9q I can make a new issue with this if you want. |
@oskarkk could you clarify what is not working specifically? I'm opening this issue as it's directly related to it and the applied fix, thank you. 🙏 |
@JcPires: 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. |
Thanks for the fast reaction and fix! |
Steps to reproduce
V7.0.0
Link to live example:
316984930-05bd0e77-f7eb-4c63-ab60-5af0eea71229.mov
Steps:
This behavior worked in the previous version v6.19.8
Current behavior
If the developer enters a value for the placeholder is not correctly replaced in the final rendering
Expected behavior
If the developer enters a value for the placeholder it's correctly replaced in the final rendering
Context
No response
Your environment
npx @mui/envinfo
Search keywords: DatePicker
The text was updated successfully, but these errors were encountered: