@orderingstack/front-components-product-configurator 1.4.2-beta.34 → 1.4.2-beta.36

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/index.es.js CHANGED
@@ -9123,8 +9123,6 @@ function useMenuProduct(product, parentAttrs, nestedLvl, parentPriduct) {
9123
9123
  selectUnselectProduct(setValue, getValues, product, checked, unregister, nestedLvl);
9124
9124
  if (isRadio) {
9125
9125
  console.log("handleOnInputChange radio", selCtx2, productId);
9126
- const selectedContextName = "selected." + selCtx2.replace("radio.", "").split(".")[0];
9127
- setValue(selectedContextName, { [productId]: "1" });
9128
9126
  const otherGroupItems = (_a2 = parentPriduct == null ? void 0 : parentPriduct.items) == null ? void 0 : _a2.filter((x2) => x2.id !== product.id);
9129
9127
  for (const key of Object.keys(selected || {})) {
9130
9128
  const isItemToClear = (otherGroupItems == null ? void 0 : otherGroupItems.some((x2) => !!findProductInParentProductBySelCtx(x2, key))) ? key : false;
@@ -9133,6 +9131,8 @@ function useMenuProduct(product, parentAttrs, nestedLvl, parentPriduct) {
9133
9131
  setValue(`selected.${key}`, false);
9134
9132
  }
9135
9133
  }
9134
+ const selectedContextName = "selected." + selCtx2.replace("radio.", "").split(".")[0];
9135
+ setValue(selectedContextName, { [productId]: "1" });
9136
9136
  refreshForm();
9137
9137
  }
9138
9138
  };
@@ -11173,5 +11173,5 @@ function ProductConfigurator(props) {
11173
11173
  })
11174
11174
  });
11175
11175
  }
11176
- export { ContextType, MainView, ProductConfigurator, ProductKinds, ProductTypes, SelMinSelMaxStatus, getProductToChangeInForm, index_esm as hookForm, selectProductsInForm, unselectProductsInForm, useMenuOptions, useProductConfigurator, useProductData, validateProductFilter };
11176
+ export { ContextType, MainView, ProductConfigurator, ProductKinds, ProductTypes, SelMinSelMaxStatus, getProductToChangeInForm, index_esm as hookForm, selectProductsInForm, unselectProductsInForm, useMenuOptions, useProductData, useStore, validateProductFilter };
11177
11177
  //# sourceMappingURL=index.es.js.map