@sproutsocial/seeds-react-menu 1.7.14 → 1.8.0

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.
@@ -11,19 +11,19 @@ $ tsup --dts
11
11
  CJS dist/index.js 90.48 KB
12
12
  CJS dist/v2/index.js 71.31 KB
13
13
  CJS dist/index.js.map 176.30 KB
14
- CJS dist/v2/index.js.map 147.74 KB
15
- CJS ⚡️ Build success in 300ms
16
- ESM dist/esm/v2/index.js 60.77 KB
14
+ CJS dist/v2/index.js.map 147.60 KB
15
+ CJS ⚡️ Build success in 347ms
16
+ ESM dist/esm/v2/index.js 60.76 KB
17
17
  ESM dist/esm/index.js 71.37 KB
18
18
  ESM dist/esm/chunk-ROQATIB7.js 9.15 KB
19
- ESM dist/esm/v2/index.js.map 128.10 KB
19
+ ESM dist/esm/v2/index.js.map 127.96 KB
20
20
  ESM dist/esm/index.js.map 152.31 KB
21
21
  ESM dist/esm/chunk-ROQATIB7.js.map 22.93 KB
22
- ESM ⚡️ Build success in 309ms
22
+ ESM ⚡️ Build success in 348ms
23
23
  DTS Build start
24
- DTS ⚡️ Build success in 15932ms
24
+ DTS ⚡️ Build success in 16494ms
25
25
  DTS dist/index.d.ts 39.04 KB
26
26
  DTS dist/v2/index.d.ts 4.87 KB
27
27
  DTS dist/index.d.mts 39.04 KB
28
28
  DTS dist/v2/index.d.mts 4.87 KB
29
- Done in 17.37s.
29
+ Done in 17.98s.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,23 @@
1
1
  # @sproutsocial/seeds-react-menu
2
2
 
3
+ ## 1.8.0
4
+
5
+ ### Minor Changes
6
+
7
+ - 994c810: Fix a bug in V2 multi autocomplete where item selection was jumping user back to the beginning of the item list
8
+
9
+ ## 1.7.15
10
+
11
+ ### Patch Changes
12
+
13
+ - @sproutsocial/seeds-react-icon@2.2.1
14
+ - @sproutsocial/seeds-react-button@1.3.15
15
+ - @sproutsocial/seeds-react-checkbox@1.3.19
16
+ - @sproutsocial/seeds-react-input@1.5.1
17
+ - @sproutsocial/seeds-react-switch@1.2.18
18
+ - @sproutsocial/seeds-react-token-input@1.4.22
19
+ - @sproutsocial/seeds-react-popout@2.4.21
20
+
3
21
  ## 1.7.14
4
22
 
5
23
  ### Patch Changes
@@ -1681,8 +1681,8 @@ function defaultReducer4(state, actionAndChanges) {
1681
1681
  ...changes,
1682
1682
  isOpen: true,
1683
1683
  // keep the menu open after selection.
1684
- highlightedIndex: 0
1685
- // with the first option highlighted.
1684
+ highlightedIndex: state.highlightedIndex
1685
+ // preserve the current position so the list doesn't jump.
1686
1686
  };
1687
1687
  default:
1688
1688
  return changes;
@@ -1824,8 +1824,7 @@ function MultiAutocomplete({
1824
1824
  inputId: id,
1825
1825
  items: itemsForCombobox,
1826
1826
  itemToString: itemToStringForDownshift,
1827
- defaultHighlightedIndex: 0,
1828
- // after selection, highlight the first item.
1827
+ defaultHighlightedIndex: -1,
1829
1828
  selectedItem: null,
1830
1829
  inputValue,
1831
1830
  isOpen,