@7shifts/sous-chef 3.19.0 → 3.19.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +6 -1
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +6 -1
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.modern.js
CHANGED
|
@@ -8733,7 +8733,7 @@ var DateField = function DateField(_ref) {
|
|
|
8733
8733
|
return formatDate(controllers.value, format);
|
|
8734
8734
|
}
|
|
8735
8735
|
|
|
8736
|
-
return
|
|
8736
|
+
return '';
|
|
8737
8737
|
}),
|
|
8738
8738
|
inputValue = _useState3[0],
|
|
8739
8739
|
setInputValue = _useState3[1];
|
|
@@ -8760,6 +8760,11 @@ var DateField = function DateField(_ref) {
|
|
|
8760
8760
|
return undefined;
|
|
8761
8761
|
};
|
|
8762
8762
|
|
|
8763
|
+
useEffect(function () {
|
|
8764
|
+
if (!controllers.value && !!inputValue) {
|
|
8765
|
+
setInputValue('');
|
|
8766
|
+
}
|
|
8767
|
+
}, [controllers.value]);
|
|
8763
8768
|
return React__default.createElement(Field, Object.assign({}, fieldProps), React__default.createElement(AffixContainer, {
|
|
8764
8769
|
prefix: React__default.createElement(IconCalendarAlt, {
|
|
8765
8770
|
size: "medium"
|