fix min checking
Signed-off-by: Arthur Lu <learthurgo@gmail.com>
This commit is contained in:
parent
b8fb562c41
commit
b928f87a79
@ -177,7 +177,7 @@ function handleUnitChange () {
|
||||
let sizeInput = document.querySelector(`#${this.id.replace("unit", "size")}`);
|
||||
if (newUnitIndex == 0) {
|
||||
sizeInput.min = sizeInput.minSize;
|
||||
if (sizeInput.value < sizeInput.min) {
|
||||
if (parseInt(sizeInput.value) < parseInt(sizeInput.min)) {
|
||||
sizeInput.value = sizeInput.min;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user