@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.
Files changed (2) hide show
  1. package/index.cjs.js +1 -4
  2. 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 => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bolttech/atoms-date-input",
3
- "version": "0.1.3",
3
+ "version": "0.1.4",
4
4
  "peerDependencies": {
5
5
  "@bolttech/atoms-input": "^0.26.1",
6
6
  "@bolttech/molecules-calendar": "^0.25.1",