fix: use step=any on AC form fields to accept bettervent values

This commit is contained in:
2026-02-11 00:39:55 +01:00
parent a334dd57a0
commit cce3644b90
2 changed files with 3 additions and 8 deletions

View File

@@ -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) {

View File

@@ -297,11 +297,11 @@
</div>
<div>
<label class="block text-sm font-medium mb-1" id="ac-capacity-label">{{t "setup.ac.capacity.label"}} <span class="tooltip-trigger" data-tooltip="{{t "setup.ac.capacity.tooltip"}}">?</span></label>
<input type="number" name="capacityBtu" step="100" required class="w-full px-3 py-1.5 rounded-lg border border-gray-300 dark:border-gray-600 bg-white dark:bg-gray-700 text-sm">
<input type="number" name="capacityBtu" step="any" required class="w-full px-3 py-1.5 rounded-lg border border-gray-300 dark:border-gray-600 bg-white dark:bg-gray-700 text-sm">
</div>
<div>
<label class="block text-sm font-medium mb-1">{{t "setup.ac.eer.label"}} <span class="tooltip-trigger" data-tooltip="{{t "setup.ac.eer.tooltip"}}">?</span></label>
<input type="number" name="efficiencyEer" step="0.1" value="10" class="w-full px-3 py-1.5 rounded-lg border border-gray-300 dark:border-gray-600 bg-white dark:bg-gray-700 text-sm">
<input type="number" name="efficiencyEer" step="any" value="10" class="w-full px-3 py-1.5 rounded-lg border border-gray-300 dark:border-gray-600 bg-white dark:bg-gray-700 text-sm">
</div>
<div class="flex items-end pb-1">
<label class="flex items-center gap-2 text-sm">
@@ -317,7 +317,7 @@
</div>
<div>
<label class="block text-sm font-medium mb-1" id="ac-heating-capacity-label">{{t "setup.ac.heatingCapacity.label"}} <span class="tooltip-trigger" data-tooltip="{{t "setup.ac.heatingCapacity.tooltip"}}">?</span></label>
<input type="number" name="heatingCapacityBtu" step="100" value="0" class="w-full px-3 py-1.5 rounded-lg border border-gray-300 dark:border-gray-600 bg-white dark:bg-gray-700 text-sm">
<input type="number" name="heatingCapacityBtu" step="any" value="0" class="w-full px-3 py-1.5 rounded-lg border border-gray-300 dark:border-gray-600 bg-white dark:bg-gray-700 text-sm">
</div>
</div>
<div>