add correct event listener

This commit is contained in:
Arthur Lu 2023-01-11 02:16:30 -08:00
parent fadf3f206c
commit 2da3d77860

View File

@ -114,7 +114,7 @@ async function populateForm (node, type, vmid) {
}
});
addDiskDevice.addEventListener("hover", () => {
addDiskDevice.addEventListener("focus", () => {
let value = document.querySelector("#add-disk #device").value;
let bus = document.querySelector("#add-disk #bus").value;
let entry = diskConfig[type][bus];