Skip to content

Commit d4b2a51

Browse files
committed
rebuild
1 parent 6819833 commit d4b2a51

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

dist/react-widgets-moment.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@
101101
},
102102

103103
parse: function parse(value, format, culture) {
104-
return getMoment(culture, value, format).toDate();
104+
return value ? getMoment(culture, value, format).toDate() : null;
105105
},
106106

107107
format: function format(value, _format, culture) {

lib/localizers/moment.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ exports['default'] = function (moment) {
5454
},
5555

5656
parse: function parse(value, format, culture) {
57-
return getMoment(culture, value, format).toDate();
57+
return value ? getMoment(culture, value, format).toDate() : null;
5858
},
5959

6060
format: function format(value, _format, culture) {

0 commit comments

Comments
 (0)