@sproutsocial/seeds-react-menu 1.7.15 → 1.8.1

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.
@@ -8,22 +8,22 @@ $ tsup --dts
8
8
  CLI Cleaning output folder
9
9
  CJS Build start
10
10
  ESM Build start
11
- CJS dist/v2/index.js 71.31 KB
12
11
  CJS dist/index.js 90.48 KB
13
- CJS dist/v2/index.js.map 147.74 KB
12
+ CJS dist/v2/index.js 71.31 KB
14
13
  CJS dist/index.js.map 176.30 KB
15
- CJS ⚡️ Build success in 406ms
14
+ CJS dist/v2/index.js.map 147.60 KB
15
+ CJS ⚡️ Build success in 345ms
16
16
  ESM dist/esm/index.js 71.37 KB
17
- ESM dist/esm/v2/index.js 60.77 KB
17
+ ESM dist/esm/v2/index.js 60.76 KB
18
18
  ESM dist/esm/chunk-ROQATIB7.js 9.15 KB
19
19
  ESM dist/esm/index.js.map 152.31 KB
20
- ESM dist/esm/v2/index.js.map 128.10 KB
20
+ ESM dist/esm/v2/index.js.map 127.96 KB
21
21
  ESM dist/esm/chunk-ROQATIB7.js.map 22.93 KB
22
- ESM ⚡️ Build success in 408ms
22
+ ESM ⚡️ Build success in 346ms
23
23
  DTS Build start
24
- DTS ⚡️ Build success in 16937ms
24
+ DTS ⚡️ Build success in 16395ms
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 18.42s.
29
+ Done in 17.82s.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,24 @@
1
1
  # @sproutsocial/seeds-react-menu
2
2
 
3
+ ## 1.8.1
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [131db40]
8
+ - @sproutsocial/seeds-react-icon@2.2.2
9
+ - @sproutsocial/seeds-react-button@1.3.16
10
+ - @sproutsocial/seeds-react-checkbox@1.3.20
11
+ - @sproutsocial/seeds-react-input@1.5.2
12
+ - @sproutsocial/seeds-react-switch@1.2.19
13
+ - @sproutsocial/seeds-react-token-input@1.4.23
14
+ - @sproutsocial/seeds-react-popout@2.4.22
15
+
16
+ ## 1.8.0
17
+
18
+ ### Minor Changes
19
+
20
+ - 994c810: Fix a bug in V2 multi autocomplete where item selection was jumping user back to the beginning of the item list
21
+
3
22
  ## 1.7.15
4
23
 
5
24
  ### 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,