fix (new): broken new file/folder button

This commit is contained in:
MickaelK 2025-05-26 17:06:10 +10:00
parent 9f275e967b
commit f1048299f6

View file

@ -111,7 +111,7 @@ export default async function(render) {
preventDefault(), preventDefault(),
rxjs.mergeMap(() => { rxjs.mergeMap(() => {
window.dispatchEvent(new KeyboardEvent("keydown", { keyCode: 27 })); // close window.dispatchEvent(new KeyboardEvent("keydown", { keyCode: 27 })); // close
const type = $input.nextSibling.getAttribute("name"); const type = $input.nextElementSibling.getAttribute("name");
if (type === "file") return touch(currentPath() + $input.value); if (type === "file") return touch(currentPath() + $input.value);
return mkdir(currentPath() + $input.value + "/"); return mkdir(currentPath() + $input.value + "/");
}), }),