@sledge-app/react-instant-search 1.0.59 → 1.0.61
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/components/SearchResultWidget/Atoms.d.ts.map +1 -1
- package/dist/sledge-react-instant-search.cjs +1 -1
- package/dist/sledge-react-instant-search.cjs.map +1 -1
- package/dist/sledge-react-instant-search.js +15 -6
- package/dist/sledge-react-instant-search.js.map +1 -1
- package/package.json +1 -1
|
@@ -740,7 +740,6 @@ const RadioGroup = ({ id, name, required, defaultValue, items, labelStyle = {},
|
|
|
740
740
|
...scrollElement && {
|
|
741
741
|
scrollElement
|
|
742
742
|
},
|
|
743
|
-
noRowsRenderer: () => /* @__PURE__ */ jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment, { children: "No items..." }),
|
|
744
743
|
rowCount: items == null ? void 0 : items.length,
|
|
745
744
|
rowHeight: 36,
|
|
746
745
|
rowRenderer: ({ index, key, style }) => rowRenderer({
|
|
@@ -3572,7 +3571,9 @@ const VirtualizedList = ({ scrollElement, noRowsRenderer, rowCount, rowHeight, r
|
|
|
3572
3571
|
onScroll: onChildScroll,
|
|
3573
3572
|
scrollTop,
|
|
3574
3573
|
width,
|
|
3575
|
-
noRowsRenderer
|
|
3574
|
+
...noRowsRenderer && {
|
|
3575
|
+
noRowsRenderer
|
|
3576
|
+
},
|
|
3576
3577
|
rowCount,
|
|
3577
3578
|
rowHeight,
|
|
3578
3579
|
rowRenderer: rowRenderer2
|
|
@@ -4448,14 +4449,13 @@ const FacetComponent = ({
|
|
|
4448
4449
|
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "sledge-instant-search__result-filter-minmax-field", children: defaultValueMax })
|
|
4449
4450
|
] })
|
|
4450
4451
|
] });
|
|
4451
|
-
} else if ((display.toLowerCase() === "checkbox" || display.toLowerCase() === "tree") && (
|
|
4452
|
+
} else if ((display.toLowerCase() === "checkbox" || display.toLowerCase() === "tree") && (currentItems == null ? void 0 : currentItems.length)) {
|
|
4452
4453
|
blockComponent = display.toLowerCase() === "checkbox" ? /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
4453
4454
|
VirtualizedList,
|
|
4454
4455
|
{
|
|
4455
4456
|
...scrollElement && {
|
|
4456
4457
|
scrollElement
|
|
4457
4458
|
},
|
|
4458
|
-
noRowsRenderer: () => /* @__PURE__ */ jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment, { children: "No items..." }),
|
|
4459
4459
|
rowCount: currentItems == null ? void 0 : currentItems.length,
|
|
4460
4460
|
rowHeight: 36,
|
|
4461
4461
|
rowRenderer: (props) => handleFacetCheckbox({
|
|
@@ -4466,7 +4466,7 @@ const FacetComponent = ({
|
|
|
4466
4466
|
) : /* @__PURE__ */ jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment, { children: handleFacetCheckbox({
|
|
4467
4467
|
facetValues: currentItems
|
|
4468
4468
|
}) });
|
|
4469
|
-
} else if (display.toLowerCase() === "radio" && (
|
|
4469
|
+
} else if (display.toLowerCase() === "radio" && (currentItems == null ? void 0 : currentItems.length)) {
|
|
4470
4470
|
blockComponent = /* @__PURE__ */ jsxRuntimeExports.jsx("li", { children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
4471
4471
|
RadioGroup,
|
|
4472
4472
|
{
|
|
@@ -4492,7 +4492,7 @@ const FacetComponent = ({
|
|
|
4492
4492
|
useVirtualized: true
|
|
4493
4493
|
}
|
|
4494
4494
|
) });
|
|
4495
|
-
} else if (display.toLowerCase() === "select" && (
|
|
4495
|
+
} else if (display.toLowerCase() === "select" && (currentItems == null ? void 0 : currentItems.length)) {
|
|
4496
4496
|
blockComponent = /* @__PURE__ */ jsxRuntimeExports.jsx("li", { children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
4497
4497
|
Select,
|
|
4498
4498
|
{
|
|
@@ -5417,6 +5417,15 @@ const ResultProduct = (props) => {
|
|
|
5417
5417
|
valueClickedOpenFilters.push(id);
|
|
5418
5418
|
}
|
|
5419
5419
|
setClickedOpenFilters(valueClickedOpenFilters);
|
|
5420
|
+
setTimeout(() => {
|
|
5421
|
+
setSeparatedFilterItem == null ? void 0 : setSeparatedFilterItem((old) => {
|
|
5422
|
+
const fixState = {
|
|
5423
|
+
...old,
|
|
5424
|
+
[id]: null
|
|
5425
|
+
};
|
|
5426
|
+
return fixState;
|
|
5427
|
+
});
|
|
5428
|
+
}, 100);
|
|
5420
5429
|
};
|
|
5421
5430
|
const handleFilterReset = () => {
|
|
5422
5431
|
setClickedFacets == null ? void 0 : setClickedFacets({});
|