@snack-uikit/fields 0.42.2 → 0.42.3
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
|
@@ -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.42.3 (2025-05-07)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* **PDS-2184:** FieldSelectSingle selected item behavior fixed onClick ([6ecd75a](https://github.com/cloud-ru-tech/snack-uikit/commit/6ecd75a9c84ae105d6a28c60aa1e42f8f1fe2c60))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
6
17
|
## 0.42.2 (2025-05-07)
|
|
7
18
|
|
|
8
19
|
|
|
@@ -173,9 +173,9 @@ exports.FieldSelectSingle = (0, react_1.forwardRef)((props, ref) => {
|
|
|
173
173
|
});
|
|
174
174
|
const handleSelectionChange = (0, react_1.useCallback)(newValue => {
|
|
175
175
|
var _a;
|
|
176
|
+
setOpen(false);
|
|
176
177
|
if (newValue !== undefined) {
|
|
177
178
|
(_a = localRef.current) === null || _a === void 0 ? void 0 : _a.focus();
|
|
178
|
-
setOpen(false);
|
|
179
179
|
setValue(newValue);
|
|
180
180
|
}
|
|
181
181
|
}, [setOpen, setValue]);
|
|
@@ -91,9 +91,9 @@ export const FieldSelectSingle = forwardRef((props, ref) => {
|
|
|
91
91
|
});
|
|
92
92
|
const handleSelectionChange = useCallback((newValue) => {
|
|
93
93
|
var _a;
|
|
94
|
+
setOpen(false);
|
|
94
95
|
if (newValue !== undefined) {
|
|
95
96
|
(_a = localRef.current) === null || _a === void 0 ? void 0 : _a.focus();
|
|
96
|
-
setOpen(false);
|
|
97
97
|
setValue(newValue);
|
|
98
98
|
}
|
|
99
99
|
}, [setOpen, setValue]);
|
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"access": "public"
|
|
5
5
|
},
|
|
6
6
|
"title": "Fields",
|
|
7
|
-
"version": "0.42.
|
|
7
|
+
"version": "0.42.3",
|
|
8
8
|
"sideEffects": [
|
|
9
9
|
"*.css",
|
|
10
10
|
"*.woff",
|
|
@@ -65,5 +65,5 @@
|
|
|
65
65
|
"peerDependencies": {
|
|
66
66
|
"@snack-uikit/locale": "*"
|
|
67
67
|
},
|
|
68
|
-
"gitHead": "
|
|
68
|
+
"gitHead": "fec818d5cdb359fddc51835cf232a2e7013e7961"
|
|
69
69
|
}
|
|
@@ -146,10 +146,10 @@ export const FieldSelectSingle = forwardRef<HTMLInputElement, FieldSelectSingleP
|
|
|
146
146
|
|
|
147
147
|
const handleSelectionChange = useCallback(
|
|
148
148
|
(newValue?: SelectionSingleValueType) => {
|
|
149
|
+
setOpen(false);
|
|
150
|
+
|
|
149
151
|
if (newValue !== undefined) {
|
|
150
152
|
localRef.current?.focus();
|
|
151
|
-
|
|
152
|
-
setOpen(false);
|
|
153
153
|
setValue(newValue);
|
|
154
154
|
}
|
|
155
155
|
},
|