@widergy/energy-ui 3.59.0 → 3.59.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
CHANGED
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
## [3.59.2](https://github.com/widergy/energy-ui/compare/v3.59.1...v3.59.2) (2025-02-13)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* align items center utpanel data item ([#574](https://github.com/widergy/energy-ui/issues/574)) ([1c35f85](https://github.com/widergy/energy-ui/commit/1c35f853bbe2a6326701ee58e8d882fc99c74a95))
|
|
7
|
+
|
|
8
|
+
## [3.59.1](https://github.com/widergy/energy-ui/compare/v3.59.0...v3.59.1) (2025-02-11)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
* add enter in allowedKey ([#569](https://github.com/widergy/energy-ui/issues/569)) ([208e845](https://github.com/widergy/energy-ui/commit/208e84531f4bb38ca9e151f52a8eb7dc45bff153))
|
|
14
|
+
|
|
1
15
|
# [3.59.0](https://github.com/widergy/energy-ui/compare/v3.58.2...v3.59.0) (2025-02-10)
|
|
2
16
|
|
|
3
17
|
|
|
@@ -64,7 +64,7 @@ const UTBaseInputField = _ref => {
|
|
|
64
64
|
}
|
|
65
65
|
}, [onChange, type]);
|
|
66
66
|
const handleKeyDown = (0, _react.useCallback)(event => {
|
|
67
|
-
const allowedKey = ['Backspace', 'ArrowLeft', 'ArrowRight', 'Delete', 'Tab'].includes(event.key);
|
|
67
|
+
const allowedKey = ['Backspace', 'ArrowLeft', 'ArrowRight', 'Delete', 'Tab', 'Enter'].includes(event.key);
|
|
68
68
|
const isNumericKey = /^[0-9]$/.test(event.key);
|
|
69
69
|
if (type === 'numeric' && !isNumericKey && !allowedKey) event.preventDefault();else if (!allowedKey) event.stopPropagation();
|
|
70
70
|
onKeyDown(event);
|