@sproutsocial/seeds-react-menu 1.10.3 → 1.10.5
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/.turbo/turbo-build.log +10 -10
- package/CHANGELOG.md +30 -0
- package/dist/esm/v2/index.js +6 -3
- package/dist/esm/v2/index.js.map +1 -1
- package/dist/v2/index.js +6 -3
- package/dist/v2/index.js.map +1 -1
- package/package.json +13 -13
- package/src/v2/Common-V2/ComboboxContent.tsx +6 -3
package/dist/v2/index.js
CHANGED
|
@@ -806,7 +806,10 @@ var VirtualizedComboboxContent = ({
|
|
|
806
806
|
}
|
|
807
807
|
}, [highlightedIndex, rowVirtualizer]);
|
|
808
808
|
const virtualItems = rowVirtualizer.getVirtualItems();
|
|
809
|
-
const menuProps = getMenuProps(
|
|
809
|
+
const menuProps = getMenuProps(
|
|
810
|
+
{ ref: containerRef },
|
|
811
|
+
{ suppressRefError: true }
|
|
812
|
+
);
|
|
810
813
|
return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("div", { ...menuProps, ...rest, children: !hasItems && EmptyState ? /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("div", { style: { padding: "16px" }, children: EmptyState }) : /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
|
|
811
814
|
StyledMenuContent,
|
|
812
815
|
{
|
|
@@ -925,7 +928,7 @@ var NormalComboboxContent = ({
|
|
|
925
928
|
...rest
|
|
926
929
|
}) => {
|
|
927
930
|
const hasItems = items.some((item) => !isGroupHeading(item));
|
|
928
|
-
const menuProps = getMenuProps();
|
|
931
|
+
const menuProps = getMenuProps({}, { suppressRefError: true });
|
|
929
932
|
return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("div", { ...menuProps, ...rest, children: !hasItems && EmptyState ? /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("div", { style: { padding: "16px" }, children: EmptyState }) : /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
|
|
930
933
|
StyledMenuContent,
|
|
931
934
|
{
|
|
@@ -1018,7 +1021,7 @@ var GroupedComboboxContent = ({
|
|
|
1018
1021
|
...rest
|
|
1019
1022
|
}) => {
|
|
1020
1023
|
const hasItems = items.some((item) => !isGroupHeading(item));
|
|
1021
|
-
const menuProps = getMenuProps();
|
|
1024
|
+
const menuProps = getMenuProps({}, { suppressRefError: true });
|
|
1022
1025
|
const groupedItems = groupItems(
|
|
1023
1026
|
items,
|
|
1024
1027
|
groupBy,
|