-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Calendar:Cannot manually reset and set today #6445
Calendar:Cannot manually reset and set today #6445
Comments
#6425 fix will be at 10.6.4 |
I saw this PR and it resolves an errors (because of handling nullish value) but it still cannot update date with passing I reproduce it in master branch with actual state of it. Try the same code sample from sandbox in your locale environment. |
If you want, you need to fork this project and create a new branch about this fix, then create PR or send me the changes and i can PR for you. |
I changed a bit this code for null check and created PR. |
Thank you! |
Fix #6445: Calendar updateViewDate fix
Describe the bug
In this issue #6422 I described the problem of calling
updateViewDate
with null parameter as a value, but got an error. Errors has been fixed, but I still cannot reset current date by passingnull
as a value.Also, I cannot set today date by passing
new Date()
as a value ofupdateViewDate
- it's just not updating for some reasons.Reproducer
https://codesandbox.io/p/devbox/objective-lena-ypxjyy?file=%2Fsrc%2FApp.tsx%3A22%2C16
PrimeReact version
10.6.3
React version
17.x
Language
TypeScript
Build / Runtime
Vite
Browser(s)
No response
Steps to reproduce the behavior
No response
Expected behavior
No response
The text was updated successfully, but these errors were encountered: