From cce3644b9066e2504693ba5be78639e9b3470d30 Mon Sep 17 00:00:00 2001 From: vikingowl Date: Wed, 11 Feb 2026 00:39:55 +0100 Subject: [PATCH] fix: use step=any on AC form fields to accept bettervent values --- web/js/setup.js | 5 ----- web/templates/setup.html | 6 +++--- 2 files changed, 3 insertions(+), 8 deletions(-) diff --git a/web/js/setup.js b/web/js/setup.js index 7ac68da..2c41aa6 100644 --- a/web/js/setup.js +++ b/web/js/setup.js @@ -635,11 +635,6 @@ heatLabel.append((_capacityUnit === "kw" ? "Heating Capacity (kW) " : "Heating Capacity (BTU) ")); if (tooltip) heatLabel.appendChild(tooltip); } - // Update step for inputs - const capInput = document.querySelector('#ac-form input[name="capacityBtu"]'); - const heatInput = document.querySelector('#ac-form input[name="heatingCapacityBtu"]'); - if (capInput) capInput.step = _capacityUnit === "kw" ? "0.1" : "100"; - if (heatInput) heatInput.step = _capacityUnit === "kw" ? "0.1" : "100"; } function displayToUnit(btuValue) { diff --git a/web/templates/setup.html b/web/templates/setup.html index 766383e..b813d5c 100644 --- a/web/templates/setup.html +++ b/web/templates/setup.html @@ -297,11 +297,11 @@
- +
- +
- +