Open phennapa-saeliw opened 2 months ago
Hey @phennapa-saeliw,
Thank you for reporting this bug. This currently is behaving incorrectly because DatePicker
has a time component as well, which is turning out to greater then be value of moment()
(which is calculated when app loads)
To help you unblock, for now, you can use {{moment().endOf('day')}}
, this will ensure anytime during the day, this datepicker will work.
We will prioritize this and fix the behavior to ignore the time part.
Hello @rahulbarwal ,
Oh, thank you very much for your advice.
I tried to fix it by using {{moment().endOf('day')}}
and it works great. I can now click the 'Today' button and the 'Submit' button can be used properly.
Is there an existing issue for this?
Description
When I set the max date to the current date, the datepicker can normally select the current date when using the mouse. But if I click on the 'Today' button, the form becomes invalid even though it selects the current date, the Submit button is disabled.
Steps To Reproduce
{{moment()}}
and set Time Precision = 'None'Public Sample App
https://app.appsmith.com/app/bug-of-datepicker/page1-66d013ced5aa71001288f430
Environment
Production
Severity
Medium (Frustrating UX)
Issue video log
No response
Version
Cloud - 1.38.0