From 810d33aba99a9033ec11eb87f1b94f320b5f9f63 Mon Sep 17 00:00:00 2001 From: Arthur Lu Date: Mon, 16 Jan 2023 16:07:06 -0800 Subject: [PATCH] fix query selector in handleUnitChange Signed-off-by: Arthur Lu --- scripts/config.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/config.js b/scripts/config.js index 28d86f0..59ecc11 100644 --- a/scripts/config.js +++ b/scripts/config.js @@ -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) {