Repository navigation
🐛(frontend) pick a mention with the mouse in comment threads - #3059
sanketpatel32 wants to merge 1 commit into
Conversation
Clicking a suggestion of the mention search did nothing in the sidebar comment threads: the dropdown is portalled, so mousedown moved focus out of .bn-thread, the thread was unselected on blur and the reply composer unmounted before click fired. Preventing the default focus shift on mousedown keeps the thread selected. Refs suitenumerique#3034 Signed-off-by: Sanket Patel <sanpatel323@gmail.com>
|
No actionable comments were generated in the recent review. WalkthroughThe mention dropdown now prevents the default Estimated code review effort: 2 (Simple) | ~5 minutes Fixed issue severity: <fixed_issue_severity>Medium</fixed_issue_severity> Suggested reviewers: Merge Risk:
|
|
Duplicated of #3055. |
Purpose
Fixes #3034.
In the comment sidebar, typing
@showed the mention suggestions but clicking one did nothing: the portalled dropdown'smousedownmoved focus out of the.bn-thread, which unmounted the composer beforeclickfired.Proposal
preventDefaulton the dropdown'sonMouseDownso focus stays in the editor thread.External contributions
General requirements
CI requirements
git commit --signoff(DCO compliance)git commit -S) — no signing key is available in this environment; let me know if it is required and I will arrange it<gitmoji>(type) title description## [Unreleased]section (if noticeable change)AI requirements