diff --git a/CHANGELOG.md b/CHANGELOG.md index 52cd9207c..fde126233 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,10 @@ +## [2.181.1](https://github.com/bettyblocks/material-ui-component-set/compare/v2.181.0...v2.181.1) (2024-02-14) + + +### Bug Fixes + +* set date input to null when there is no value ([3368de6](https://github.com/bettyblocks/material-ui-component-set/commit/3368de65f6ae30487d19008c04950be79e58cd8d)) + # [2.181.0](https://github.com/bettyblocks/material-ui-component-set/compare/v2.180.1...v2.181.0) (2024-02-09) diff --git a/package.json b/package.json index 8166778a4..65ea036fc 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "component-set", - "version": "2.181.0", + "version": "2.181.1", "main": "dist/templates.json", "license": "UNLICENSED", "private": false, diff --git a/src/components/dateTimePickerInput.js b/src/components/dateTimePickerInput.js index dfe58be43..96278d6ec 100644 --- a/src/components/dateTimePickerInput.js +++ b/src/components/dateTimePickerInput.js @@ -134,8 +134,6 @@ datetimeFormat, ); - if (!parsedValue) return; - if (isValidDate(formatDefaultParse)) { setSelectedDate(formatDefaultParse); } else { @@ -160,6 +158,8 @@ default: } + } else { + setSelectedDate(null); } }, [parsedValue]);