@bolttech/atoms-date-input 0.1.3 → 0.1.4
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/index.cjs.js +1 -4
- package/package.json +1 -1
package/index.cjs.js
CHANGED
|
@@ -2030,10 +2030,7 @@ const DateInput = /*#__PURE__*/react.forwardRef(({
|
|
|
2030
2030
|
updateDate({});
|
|
2031
2031
|
}, []);
|
|
2032
2032
|
react.useEffect(() => {
|
|
2033
|
-
if (!value || typeof value !== 'string')
|
|
2034
|
-
updateDate({});
|
|
2035
|
-
return;
|
|
2036
|
-
}
|
|
2033
|
+
if (!value || typeof value !== 'string') return;
|
|
2037
2034
|
setInputValue(value);
|
|
2038
2035
|
}, [value]);
|
|
2039
2036
|
const setInputValue = value => {
|