@sledge-app/react-instant-search 2.0.0 → 2.0.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.
@@ -4184,9 +4184,7 @@ const VariantSelector = (props) => {
4184
4184
  if (inventoryPolicy)
4185
4185
  setSelectedVariantInventoryPolicy == null ? void 0 : setSelectedVariantInventoryPolicy(inventoryPolicy);
4186
4186
  if (imageId)
4187
- parentCard.querySelector(`img.sledge__product-grid-card-image-featured-image`).src = parentCard.querySelector(
4188
- `div.sledge__product-grid-card-variant-images img[id="${imageId}"]`
4189
- ).src;
4187
+ parentCard.querySelector(`img.sledge__product-grid-card-image-featured-image`).src = parentCard.querySelector(`div.sledge__product-grid-card-variant-images img[id="${imageId}"]`).src;
4190
4188
  };
4191
4189
  setOther();
4192
4190
  const result = {
@@ -5298,6 +5296,7 @@ const FlyoutSidebar = ({ title, content, footer = null, open, setOpen, position
5298
5296
  };
5299
5297
  }, []);
5300
5298
  React__default.useEffect(() => {
5299
+ open ? document.body.classList.add("sledge__open-flyout-state") : document.body.classList.remove("sledge__open-flyout-state");
5301
5300
  if (!open)
5302
5301
  return;
5303
5302
  setIsLoading(true);