@snack-uikit/fields 0.20.5 → 0.20.7

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,26 @@
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.20.7 (2024-05-13)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * **FF-0000:** add forgotten ([96e1334](https://github.com/cloud-ru-tech/snack-uikit/commit/96e13348e646f581a97cabe873cdfe02c5a96658))
12
+
13
+
14
+
15
+
16
+
17
+ ## 0.20.6 (2024-05-13)
18
+
19
+ ### Only dependencies have been changed
20
+ * [@snack-uikit/list@0.13.0](https://github.com/cloud-ru-tech/snack-uikit/blob/master/packages/list/CHANGELOG.md)
21
+
22
+
23
+
24
+
25
+
6
26
  ## 0.20.5 (2024-05-08)
7
27
 
8
28
  ### Only dependencies have been changed
@@ -121,8 +121,12 @@ export const FieldSelectMultiple = forwardRef((_a, ref) => {
121
121
  mode: 'multiple',
122
122
  value: value,
123
123
  onChange: value => {
124
+ var _a;
124
125
  setValue(value);
125
- updateInputValue();
126
+ if (inputValue) {
127
+ (_a = localRef.current) === null || _a === void 0 ? void 0 : _a.focus();
128
+ updateInputValue();
129
+ }
126
130
  },
127
131
  }, dataFiltered: (_b = rest.dataFiltered) !== null && _b !== void 0 ? _b : Boolean(inputValue.length), size: size, open: !disabled && !readonly && open, onOpenChange: handleOpenChange, children: ({ onKeyDown }) => {
128
132
  var _a, _b, _c, _d;
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "access": "public"
5
5
  },
6
6
  "title": "Fields",
7
- "version": "0.20.5",
7
+ "version": "0.20.7",
8
8
  "sideEffects": [
9
9
  "*.css",
10
10
  "*.woff",
@@ -37,7 +37,7 @@
37
37
  "@snack-uikit/dropdown": "0.2.2",
38
38
  "@snack-uikit/icons": "0.21.0",
39
39
  "@snack-uikit/input-private": "3.1.3",
40
- "@snack-uikit/list": "0.12.0",
40
+ "@snack-uikit/list": "0.13.0",
41
41
  "@snack-uikit/scroll": "0.5.3",
42
42
  "@snack-uikit/skeleton": "0.3.4",
43
43
  "@snack-uikit/slider": "0.1.10",
@@ -59,5 +59,5 @@
59
59
  "peerDependencies": {
60
60
  "@snack-uikit/locale": "*"
61
61
  },
62
- "gitHead": "a308f550fb12d114a27d9b7d6804c212a316a09d"
62
+ "gitHead": "58d2de0677c973ff4510861699d6fc19b8912a44"
63
63
  }
@@ -184,7 +184,10 @@ export const FieldSelectMultiple = forwardRef<HTMLInputElement, FieldSelectMulti
184
184
  value: value,
185
185
  onChange: value => {
186
186
  setValue(value);
187
- updateInputValue();
187
+ if (inputValue) {
188
+ localRef.current?.focus();
189
+ updateInputValue();
190
+ }
188
191
  },
189
192
  }}
190
193
  dataFiltered={rest.dataFiltered ?? Boolean(inputValue.length)}