@sledge-app/react-instant-search 2.0.61 → 2.0.63

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.
@@ -10087,7 +10087,8 @@ const SearchResultWidget = (props) => {
10087
10087
  previewSettings,
10088
10088
  instantSearchSettings,
10089
10089
  currentColumnGrid,
10090
- setCurrentColumnGrid
10090
+ setCurrentColumnGrid,
10091
+ currentTags
10091
10092
  })
10092
10093
  ] });
10093
10094
  };
@@ -10174,7 +10175,8 @@ const ResultProduct = React__default.memo((props) => {
10174
10175
  previewSettings,
10175
10176
  instantSearchSettings,
10176
10177
  currentColumnGrid,
10177
- setCurrentColumnGrid
10178
+ setCurrentColumnGrid,
10179
+ currentTags
10178
10180
  } = props || {};
10179
10181
  const { collectionId, collectionName } = params || {};
10180
10182
  const isLoadMore = ["load_more", "infinite_scroll"].includes((_a = displaySettings == null ? void 0 : displaySettings.search) == null ? void 0 : _a.pagination_type);
@@ -10358,7 +10360,11 @@ const ResultProduct = React__default.memo((props) => {
10358
10360
  [clickedOpenFilters]
10359
10361
  );
10360
10362
  const handleFilterReset = React__default.useCallback(() => {
10361
- setClickedFacets == null ? void 0 : setClickedFacets({});
10363
+ setClickedFacets == null ? void 0 : setClickedFacets(
10364
+ (currentTags == null ? void 0 : currentTags.length) ? {
10365
+ tags: currentTags
10366
+ } : {}
10367
+ );
10362
10368
  setTriggerClickedFacets(!triggerClickedFacets);
10363
10369
  handleQueryStringFilter({});
10364
10370
  setValueFilterPriceChange == null ? void 0 : setValueFilterPriceChange([]);
@@ -10484,7 +10490,7 @@ const ResultProduct = React__default.memo((props) => {
10484
10490
  if (objectPresent(previewSettings))
10485
10491
  updateTabs();
10486
10492
  if (isFirstTimeOrOnSearch || isNoneFacetSelected) {
10487
- if (handleSearchResultFirstTime && initStatesFirstTime && clickedFacets && Object.keys(clickedFacets).length) {
10493
+ if (handleSearchResultFirstTime && initStatesFirstTime && clickedFacets && Object.keys(clickedFacets).length && !(currentTags == null ? void 0 : currentTags.length)) {
10488
10494
  const initData = await handleSearchResponse({
10489
10495
  layoutType,
10490
10496
  clickedTabIndexId,