Skip to content

Commit

Permalink
Prevent datepicker from asking the user to select a date before showi…
Browse files Browse the repository at this point in the history
…ng the calendar (ToolJet#1542)
  • Loading branch information
Sherfin Shamsudeen authored Dec 9, 2021
1 parent 31e200a commit bbf552d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/src/Editor/Components/Datepicker.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
<div
Expand Down

0 comments on commit bbf552d

Please sign in to comment.