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:
@@ -210,7 +210,7 @@ function onChange(event) {
|
|||||||
if (inputValue > max) {
|
if (inputValue > max) {
|
||||||
decoratedInputValue = max.toString().padStart(2, "0");
|
decoratedInputValue = max.toString().padStart(2, "0");
|
||||||
} else if (inputValue < min) {
|
} else if (inputValue < min) {
|
||||||
decoratedInputValue = min.toString();
|
decoratedInputValue = min.toString().padStart(2, "0");
|
||||||
}
|
}
|
||||||
const dsp = event.target.dataset.tunit;
|
const dsp = event.target.dataset.tunit;
|
||||||
tUnits.value[dsp].val = decoratedInputValue;
|
tUnits.value[dsp].val = decoratedInputValue;
|
||||||
|
|||||||
Reference in New Issue
Block a user