@synerise/ds-input-number 0.9.5 → 0.9.6

Sign up to get free protection for your applications and to get access to all the features.
package/CHANGELOG.md CHANGED
@@ -3,6 +3,17 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [0.9.6](https://github.com/Synerise/synerise-design/compare/@synerise/ds-input-number@0.9.5...@synerise/ds-input-number@0.9.6) (2024-02-23)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * **input-number:** fixed issue with 0value ([1232945](https://github.com/Synerise/synerise-design/commit/1232945c47b99dd34174adbe2b7953c269ea36a9))
12
+
13
+
14
+
15
+
16
+
6
17
  ## [0.9.5](https://github.com/Synerise/synerise-design/compare/@synerise/ds-input-number@0.9.4...@synerise/ds-input-number@0.9.5) (2024-02-21)
7
18
 
8
19
  **Note:** Version bump only for package @synerise/ds-input-number
@@ -36,12 +36,12 @@ var InputNumber = function InputNumber(_ref) {
36
36
  thousandDelimiter = _useDataFormat.thousandDelimiter,
37
37
  decimalDelimiter = _useDataFormat.decimalDelimiter;
38
38
 
39
- var _useState = useState(value || defaultValue),
39
+ var _useState = useState(value != null ? value : defaultValue),
40
40
  localValue = _useState[0],
41
41
  setLocalValue = _useState[1];
42
42
 
43
43
  useEffect(function () {
44
- if (value && value !== localValue) {
44
+ if (value !== undefined && value !== localValue) {
45
45
  setLocalValue(value);
46
46
  } // eslint-disable-next-line react-hooks/exhaustive-deps
47
47
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@synerise/ds-input-number",
3
- "version": "0.9.5",
3
+ "version": "0.9.6",
4
4
  "description": "Input-Number UI Component for the Synerise Design System",
5
5
  "license": "ISC",
6
6
  "repository": "Synerise/synerise-design",
@@ -50,5 +50,5 @@
50
50
  "@testing-library/react-hooks": "^8.0.1",
51
51
  "@types/uuid": "9.0.4"
52
52
  },
53
- "gitHead": "673df74b628304300c09f0d7e26279b5901cd925"
53
+ "gitHead": "751dc6640206153c0d4ab08107743bc816df532c"
54
54
  }