Fix auto-quantity change on free-price input

* Fix auto-quantity change on free-price input

* do not use one()
This commit is contained in:
Richard Schreiber
2026-01-29 14:19:09 +01:00
committed by GitHub
parent 1e2900ad2a
commit 0e5e2193ed

View File

@@ -716,7 +716,7 @@ $(function () {
// free-range price input auto-check checkbox/set count-input to 1 if 0
$("[data-checked-onchange]").each(function() {
var countInput = this;
$("#" + this.getAttribute("data-checked-onchange")).on("change", function() {
$("#" + this.getAttribute("data-checked-onchange")).on("input", function() {
if (countInput.type === "checkbox") {
if (countInput.checked) return;
countInput.checked = true;