@sproutsocial/seeds-react-menu 1.7.15 → 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.
package/dist/v2/index.js
CHANGED
|
@@ -1871,8 +1871,8 @@ function defaultReducer4(state, actionAndChanges) {
|
|
|
1871
1871
|
...changes,
|
|
1872
1872
|
isOpen: true,
|
|
1873
1873
|
// keep the menu open after selection.
|
|
1874
|
-
highlightedIndex:
|
|
1875
|
-
//
|
|
1874
|
+
highlightedIndex: state.highlightedIndex
|
|
1875
|
+
// preserve the current position so the list doesn't jump.
|
|
1876
1876
|
};
|
|
1877
1877
|
default:
|
|
1878
1878
|
return changes;
|
|
@@ -2014,8 +2014,7 @@ function MultiAutocomplete({
|
|
|
2014
2014
|
inputId: id,
|
|
2015
2015
|
items: itemsForCombobox,
|
|
2016
2016
|
itemToString: itemToStringForDownshift,
|
|
2017
|
-
defaultHighlightedIndex:
|
|
2018
|
-
// after selection, highlight the first item.
|
|
2017
|
+
defaultHighlightedIndex: -1,
|
|
2019
2018
|
selectedItem: null,
|
|
2020
2019
|
inputValue,
|
|
2021
2020
|
isOpen,
|