fix: prevent event bubbling on save-as input keydown to avoid triggering parent listeners

This commit is contained in:
2026-05-31 00:43:28 +05:30
parent 20c0a1b272
commit 36a6d72586
+1
View File
@@ -1609,6 +1609,7 @@
} }
}); });
inp.addEventListener("keydown", (e) => { inp.addEventListener("keydown", (e) => {
e.stopPropagation();
if (e.key === "Enter") if (e.key === "Enter")
document.getElementById("d-saveas-ok").click(); document.getElementById("d-saveas-ok").click();
}); });