fix (upload): click on loading item

clicking on a item loading would redirect the user to the root, we are
much better off disabling the link
This commit is contained in:
MickaelK 2025-09-24 11:49:38 +10:00
parent b9104626fc
commit 3ef7f92d42

View file

@ -143,7 +143,7 @@ export function createThing({
if (loading) {
$img.setAttribute("src", IMAGE.LOADING);
$img.setAttribute("alt", "loading");
$link.setAttribute("href", "#");
$link.removeAttribute("href");
$extension.innerHTML = "";
return $thing;
} else if (type === "hidden") {