fix(client): pressing "Download" on PDF preview also opens note

This commit is contained in:
Elian Doran 2025-09-15 18:58:58 +03:00
parent c5dbaccea8
commit a5171ce093
No known key found for this signature in database

View File

@ -256,7 +256,10 @@ function renderFile(entity: FNote | FAttachment, type: string, $renderedContent:
</button>
`);
$downloadButton.on("click", () => openService.downloadFileNote(entity.noteId));
$downloadButton.on("click", (e) => {
e.stopPropagation();
openService.downloadFileNote(entity.noteId)
});
$openButton.on("click", async (e) => {
const iconEl = $openButton.find("> .bx");
iconEl.removeClass("bx bx-link-external");