Skip to content
This repository was archived by the owner on Jun 24, 2025. It is now read-only.

Commit 26afab0

Browse files
authored
Merge pull request #2303 from TriliumNext/sirius_patch
fix(image): ensure images opened in a new tab can be activated
2 parents 2f32754 + 07bb064 commit 26afab0

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

apps/client/src/widgets/type_widgets/abstract_text_type_widget.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ export default class AbstractTextTypeWidget extends TypeWidget {
1717
this.$widget.on("dblclick", "img", (e) => this.openImageInCurrentTab($(e.target)));
1818

1919
this.$widget.on("click", "img", (e) => {
20+
e.stopPropagation();
2021
const isLeftClick = e.which === 1;
2122
const isMiddleClick = e.which === 2;
2223
const ctrlKey = utils.isCtrlKey(e);

0 commit comments

Comments
 (0)