@sonardigital/carbon-ui 1.2.23 → 1.2.25

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sonardigital/carbon-ui",
3
- "version": "1.2.23",
3
+ "version": "1.2.25",
4
4
  "description": "",
5
5
  "main": "src/index.ts",
6
6
  "files": [
@@ -28,6 +28,7 @@ export function NumberInput({
28
28
  id: idProp,
29
29
  placeholder,
30
30
  error,
31
+ onChange,
31
32
  ...other
32
33
  }: NumberProps) {
33
34
  const size = 'medium';
@@ -42,7 +43,7 @@ export function NumberInput({
42
43
  <BaseNumberField.Input
43
44
  id={id}
44
45
  onChange={event =>
45
- other.onChange(
46
+ onChange(
46
47
  event as BaseUIEvent<React.ChangeEvent<HTMLInputElement>>,
47
48
  )
48
49
  }
@@ -95,7 +96,7 @@ export function NumberInput({
95
96
  aria-label="Increase"
96
97
  onClick={() =>
97
98
  // @ts-ignore
98
- props?.onChange?.(state.value ?? 0)
99
+ props?.onChange?.(props.value ?? 0)
99
100
  }
100
101
  />
101
102
  }