fix count-input not triggering add-to-cart activation

This commit is contained in:
Richard Schreiber
2022-06-15 11:41:13 +02:00
parent dfebcf5294
commit 86167aa967
@@ -652,9 +652,10 @@ $(function () {
// free-range price input auto-check checkbox
$("[data-checked-onchange]").each(function() {
var checkbox = this;
var countInput = this;
$("#" + this.getAttribute("data-checked-onchange")).on("change", function() {
checkbox.checked = true;
if (countInput.type === "checkbox") countInput.checked = true;
$(countInput).trigger("change")
});
});
});