From 1ce205c17b3fbd489b937675811e7621b98d35c2 Mon Sep 17 00:00:00 2001 From: Arthur Lu Date: Wed, 11 Jan 2023 02:16:30 -0800 Subject: [PATCH] add correct event listener --- scripts/config.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/config.js b/scripts/config.js index 4c2122e..d3986e3 100644 --- a/scripts/config.js +++ b/scripts/config.js @@ -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];