Skip to content

fix(quotes): prevent preview overlap when editing a citation - #1417

Merged
nixuuu merged 2 commits into
devfrom
fix/citation-popover-conflict
Nov 28, 2026
Merged

nixuuu merged 2 commits into
devfrom
fix/citation-popover-conflict

Conversation

@nixuuu

@nixuuu nixuuu commented Nov 28, 2026

Copy link
Copy Markdown
Member

Clicking a composer citation could start its focus preview during the press or leave an already visible preview fading over the edit form. The composer now unmounts the preview and cancels its timer when editing begins. It restores preview handling after the edit panel closes and returns focus. Pointer presses also cancel pending hover requests, while keyboard focus continues to show the preview.

Fixes: #591

Verified with the shared MentionEditor in Chromium. Before the change, frame sampling recorded both panels during the same frame. After the change, checked clicking a visible preview, pressing before the hover delay, holding through that delay, Enter and Space from keyboard focus, saving a note and previewing it again, and inserting a citation while another preview was open. A tap at a 390 px emulated touch viewport opened only the editor. Ran formatting and lint on the edited components and checked the diff. Full repository verification runs in CI.

@nixuuu
nixuuu enabled auto-merge (squash) November 28, 2026 09:34
@nixuuu
nixuuu merged commit 21f0d56 into dev Nov 28, 2026
11 checks passed
@nixuuu
nixuuu deleted the fix/citation-popover-conflict branch November 28, 2026 09:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant