@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.js
CHANGED
|
@@ -8738,7 +8738,7 @@ var DateField = function DateField(_ref) {
|
|
|
8738
8738
|
return formatDate(controllers.value, format);
|
|
8739
8739
|
}
|
|
8740
8740
|
|
|
8741
|
-
return
|
|
8741
|
+
return '';
|
|
8742
8742
|
}),
|
|
8743
8743
|
inputValue = _useState3[0],
|
|
8744
8744
|
setInputValue = _useState3[1];
|
|
@@ -8765,6 +8765,11 @@ var DateField = function DateField(_ref) {
|
|
|
8765
8765
|
return undefined;
|
|
8766
8766
|
};
|
|
8767
8767
|
|
|
8768
|
+
React.useEffect(function () {
|
|
8769
|
+
if (!controllers.value && !!inputValue) {
|
|
8770
|
+
setInputValue('');
|
|
8771
|
+
}
|
|
8772
|
+
}, [controllers.value]);
|
|
8768
8773
|
return React__default.createElement(Field, Object.assign({}, fieldProps), React__default.createElement(AffixContainer, {
|
|
8769
8774
|
prefix: React__default.createElement(IconCalendarAlt, {
|
|
8770
8775
|
size: "medium"
|