From bbf552d6932c546d0f58d46cd2ae695171b043a8 Mon Sep 17 00:00:00 2001 From: Sherfin Shamsudeen Date: Thu, 9 Dec 2021 11:06:59 +0530 Subject: [PATCH] Prevent datepicker from asking the user to select a date before showing the calendar (#1542) --- frontend/src/Editor/Components/Datepicker.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/Editor/Components/Datepicker.jsx b/frontend/src/Editor/Components/Datepicker.jsx index 4c3a469f91..db0ca9db10 100644 --- a/frontend/src/Editor/Components/Datepicker.jsx +++ b/frontend/src/Editor/Components/Datepicker.jsx @@ -38,7 +38,7 @@ export const Datepicker = function Datepicker({ // eslint-disable-next-line react-hooks/exhaustive-deps }, [isValid]); - const isDateFormat = enableDate ? format : false; + const isDateFormat = enableDate === true ? format : enableDate; return (