fix query selector in handleUnitChange
Signed-off-by: Arthur Lu <learthurgo@gmail.com>
This commit is contained in:
parent
767c239c82
commit
810d33aba9
@ -174,7 +174,7 @@ function addDiskLine (fieldset, busPrefix, busName, device, storage, storageOpti
|
||||
|
||||
function handleUnitChange () {
|
||||
let newUnitIndex = this.selectedIndex;
|
||||
let sizeInput = document.querySelector(`${this.id.replace("unit", "size")}`);
|
||||
let sizeInput = document.querySelector(`#${this.id.replace("unit", "size")}`);
|
||||
if (newUnitIndex == 0) {
|
||||
sizeInput.min = sizeInput.minSize;
|
||||
if (sizeInput.value < sizeInput.min) {
|
||||
|
Loading…
Reference in New Issue
Block a user