Skip to content

Commit

Permalink
Do not return placeholder date when parsing whitespace string
Browse files Browse the repository at this point in the history
  • Loading branch information
pkalita-lbl committed Nov 9, 2023
1 parent 22c301b commit 01d9f73
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions lib/editors/FlatpickrEditor.js
Original file line number Diff line number Diff line change
Expand Up @@ -172,9 +172,6 @@ class FlatpickrEditor extends Handsontable.editors.TextEditor {
return format(dateObj, formatString);
},
parseDate: (dateString, formatString) => {
if (!dateString.trim()) {
return REF_DATE;
}
return parse(dateString, formatString, REF_DATE);
},
onChange: (dates, datestr) => {
Expand Down

0 comments on commit 01d9f73

Please sign in to comment.