fix invalid query selector ids

Signed-off-by: Arthur Lu <learthurgo@gmail.com>
This commit is contained in:
Arthur Lu 2023-01-16 16:08:20 -08:00
parent 810d33aba9
commit 0d2a2763c9

View File

@ -144,7 +144,7 @@ function addDiskLine (fieldset, busPrefix, busName, device, storage, storageOpti
sizeInput.minSize = size;
sizeInput.max = 1023; // just use the next unit
sizeInput.value = size;
sizeInput.id = `${busPrefix}${device}:size`;
sizeInput.id = `${busPrefix}${device}-size`;
if (!diskConfig[type][busPrefix].resizable) {
sizeInput.disabled = true;
}
@ -158,7 +158,7 @@ function addDiskLine (fieldset, busPrefix, busName, device, storage, storageOpti
if (!diskConfig[type][busPrefix].resizable) {
sizeUnitSelect.disabled = true;
}
sizeUnitSelect.id = `${busPrefix}${device}:unit`;
sizeUnitSelect.id = `${busPrefix}${device}-unit`;
sizeUnitSelect.addEventListener("change", handleUnitChange);
field.append(sizeUnitSelect);