@laser-ui/components 2.6.1 → 2.6.2
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/CHANGELOG.md +6 -0
- package/input/InputNumber.js +1 -9
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,12 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
4
4
|
|
|
5
|
+
## [2.6.2](https://github.com/laser-ui/laser-ui/compare/v2.6.1...v2.6.2) (2026-04-09)
|
|
6
|
+
|
|
7
|
+
### Bug Fixes
|
|
8
|
+
|
|
9
|
+
- **components:** always sync value and input ([7f09ac9](https://github.com/laser-ui/laser-ui/commit/7f09ac97eb6f4644cb5d31a2da842f6d5688ccc5))
|
|
10
|
+
|
|
5
11
|
## [2.6.1](https://github.com/laser-ui/laser-ui/compare/v2.6.0...v2.6.1) (2026-04-09)
|
|
6
12
|
|
|
7
13
|
### Bug Fixes
|
package/input/InputNumber.js
CHANGED
|
@@ -107,15 +107,7 @@ export function InputNumber(props) {
|
|
|
107
107
|
};
|
|
108
108
|
}, value: placeholderValue, max: max, min: min, step: step, type: "number", placeholder: placeholder, disabled: disabled, onValueChange: (val) => {
|
|
109
109
|
setPlaceholderValue(val);
|
|
110
|
-
|
|
111
|
-
_changeValue(null);
|
|
112
|
-
}
|
|
113
|
-
else {
|
|
114
|
-
const num = Number(val);
|
|
115
|
-
if ((isUndefined(max) || num <= max) && (isUndefined(min) || num >= min) && (!integer || Number.isInteger(num))) {
|
|
116
|
-
_changeValue(num);
|
|
117
|
-
}
|
|
118
|
-
}
|
|
110
|
+
_changeValue(val.length === 0 ? null : Number(val));
|
|
119
111
|
}, onFocus: (e) => {
|
|
120
112
|
var _a;
|
|
121
113
|
(_a = inputProps === null || inputProps === void 0 ? void 0 : inputProps.onFocus) === null || _a === void 0 ? void 0 : _a.call(inputProps, e);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@laser-ui/components",
|
|
3
|
-
"version": "2.6.
|
|
3
|
+
"version": "2.6.2",
|
|
4
4
|
"description": "React components.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ui",
|
|
@@ -37,5 +37,5 @@
|
|
|
37
37
|
"access": "public",
|
|
38
38
|
"directory": "../../dist/libs/components"
|
|
39
39
|
},
|
|
40
|
-
"gitHead": "
|
|
40
|
+
"gitHead": "44becbe9fcc81f5dab37ecf828d2fba9f25b1db6"
|
|
41
41
|
}
|