Add missing padStart when clamping to min value in DurationInput

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-03-09 18:48:45 +08:00
parent 674afd769c
commit 542b941efb

View File

@@ -210,7 +210,7 @@ function onChange(event) {
if (inputValue > max) {
decoratedInputValue = max.toString().padStart(2, "0");
} else if (inputValue < min) {
decoratedInputValue = min.toString();
decoratedInputValue = min.toString().padStart(2, "0");
}
const dsp = event.target.dataset.tunit;
tUnits.value[dsp].val = decoratedInputValue;