@snack-uikit/fields 0.42.2 → 0.42.4

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,29 @@
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.4 (2025-05-12)
7
+
8
+ ### Only dependencies have been changed
9
+ * [@snack-uikit/button@0.19.10](https://github.com/cloud-ru-tech/snack-uikit/blob/master/packages/button/CHANGELOG.md)
10
+ * [@snack-uikit/calendar@0.12.1](https://github.com/cloud-ru-tech/snack-uikit/blob/master/packages/calendar/CHANGELOG.md)
11
+ * [@snack-uikit/color-picker@0.3.26](https://github.com/cloud-ru-tech/snack-uikit/blob/master/packages/color-picker/CHANGELOG.md)
12
+ * [@snack-uikit/list@0.28.1](https://github.com/cloud-ru-tech/snack-uikit/blob/master/packages/list/CHANGELOG.md)
13
+
14
+
15
+
16
+
17
+
18
+ ## 0.42.3 (2025-05-07)
19
+
20
+
21
+ ### Bug Fixes
22
+
23
+ * **PDS-2184:** FieldSelectSingle selected item behavior fixed onClick ([6ecd75a](https://github.com/cloud-ru-tech/snack-uikit/commit/6ecd75a9c84ae105d6a28c60aa1e42f8f1fe2c60))
24
+
25
+
26
+
27
+
28
+
6
29
  ## 0.42.2 (2025-05-07)
7
30
 
8
31
 
@@ -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.2",
7
+ "version": "0.42.4",
8
8
  "sideEffects": [
9
9
  "*.css",
10
10
  "*.woff",
@@ -36,14 +36,14 @@
36
36
  "license": "Apache-2.0",
37
37
  "scripts": {},
38
38
  "dependencies": {
39
- "@snack-uikit/button": "0.19.9",
40
- "@snack-uikit/calendar": "0.12.0",
41
- "@snack-uikit/color-picker": "0.3.25",
39
+ "@snack-uikit/button": "0.19.10",
40
+ "@snack-uikit/calendar": "0.12.1",
41
+ "@snack-uikit/color-picker": "0.3.26",
42
42
  "@snack-uikit/divider": "3.2.5",
43
43
  "@snack-uikit/dropdown": "0.4.7",
44
44
  "@snack-uikit/icons": "0.26.2",
45
45
  "@snack-uikit/input-private": "4.5.8",
46
- "@snack-uikit/list": "0.28.0",
46
+ "@snack-uikit/list": "0.28.1",
47
47
  "@snack-uikit/scroll": "0.10.0",
48
48
  "@snack-uikit/skeleton": "0.6.4",
49
49
  "@snack-uikit/slider": "0.3.17",
@@ -65,5 +65,5 @@
65
65
  "peerDependencies": {
66
66
  "@snack-uikit/locale": "*"
67
67
  },
68
- "gitHead": "ab82d31b168bac141d19f6b7d43b3f1888387038"
68
+ "gitHead": "82c6f5f9fd1845d6752a3cb38e8b2e0fc3cc5c98"
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
  },