Fix custom spinner-buttons missing change-event

This commit is contained in:
Richard Schreiber
2023-05-08 13:21:42 +02:00
parent c051d04462
commit 5bacbfa9f1

View File

@@ -123,6 +123,7 @@ var form_handlers = function (el) {
var controls = document.getElementById(this.getAttribute("data-controls"));
var currentValue = parseFloat(controls.value);
controls.value = Math.max(controls.min, Math.min(controls.max, (currentValue || 0) + step));
controls.dispatchEvent(new Event("change"));
});
el.find("script[data-replace-with-qr]").each(function () {