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

fix(image): ensure images opened in a new tab can be activated #2303

Merged
merged 1 commit into from
Jun 13, 2025

Conversation

SiriusXT
Copy link
Member

Before:

In text notes, the first Ctrl+Shift+Click on an image correctly opens the image in a new tab and activates it.
However, after switching back to the original tab, a second Ctrl+Shift+Click also opens the image in a new tab, but fails to activate it.

This issue occurs because the click event propagates to the following handler in apps/client/src/widgets/containers/split_note_container.ts:

$renderedWidget.on("click", () => appContext.tabManager.activateNoteContext(noteContext.ntxId));

As a result, after the image tab is activated, it is immediately switched back to the original tab, making it appear as though the image tab was not activated.

@dosubot dosubot bot added the size:XS This PR changes 0-9 lines, ignoring generated files. label Jun 13, 2025
@eliandoran eliandoran merged commit 26afab0 into develop Jun 13, 2025
10 checks passed
@eliandoran eliandoran deleted the sirius_patch branch June 13, 2025 12:31
@eliandoran eliandoran added this to the v0.95.0 milestone Jun 13, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
size:XS This PR changes 0-9 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants