@orderingstack/front-components-product-configurator 1.4.2-beta.27 → 1.4.2-beta.28
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
|
@@ -9096,6 +9096,11 @@ function useMenuProduct(product, parentAttrs, nestedLvl) {
|
|
|
9096
9096
|
const {
|
|
9097
9097
|
target: { checked, name: selCtx2, defaultValue: productId }
|
|
9098
9098
|
} = e2;
|
|
9099
|
+
for (const key of Object.keys(selected || {})) {
|
|
9100
|
+
if (key !== (product == null ? void 0 : product.selCtx) && (key == null ? void 0 : key.includes(product.selCtx)) && isRadio) {
|
|
9101
|
+
setValue(`selected.${key}`, false);
|
|
9102
|
+
}
|
|
9103
|
+
}
|
|
9099
9104
|
selectUnselectProduct(setValue, getValues, product, checked, unregister, nestedLvl);
|
|
9100
9105
|
if (isRadio) {
|
|
9101
9106
|
console.log("handleOnInputChange radio", selCtx2, productId);
|