[buddypress-trac] [BuddyPress Trac] #9289: BP Mentions autosuggest popup positioning bug

buddypress-trac noreply at wordpress.org
Mon Dec 29 08:56:00 UTC 2025


#9289: BP Mentions autosuggest popup positioning bug
--------------------------+-------------------------------------
 Reporter:  cjerrells     |       Owner:  (none)
     Type:  defect (bug)  |      Status:  new
 Priority:  low           |   Milestone:  Awaiting Contributions
Component:  Activity      |     Version:  14.3.2
 Severity:  normal        |  Resolution:
 Keywords:  has-patch     |
--------------------------+-------------------------------------
Changes (by prbot):

 * keywords:   => has-patch


Comment:

 ''This ticket was mentioned in
 [https://github.com/buddypress/buddypress/pull/429 PR #429] on
 [https://github.com/buddypress/buddypress/ buddypress/buddypress] by
 [https://profiles.wordpress.org/manhphucofficial/ @manhphucofficial].''
 ### Summary
 This PR fixes an issue where the BuddyPress mentions autosuggest dropdown
 appears far from the caret when the editor content is scrollable.

 ### Details
 Two issues were addressed:
 - Use the correct at.js callback key (`beforeReposition`), as the existing
   `before_reposition` callback was never executed.
 - When an iframe is used (eg TinyMCE), adjust the caret position by
 accounting
   for the iframe document scroll offset so the popup tracks the caret
 correctly.

 ### How to test
 1. Go to a mentions-enabled editor (eg Messages → Compose).
 2. Add enough content so the editor area scrolls.
 3. Scroll down inside the editor and type `@de`.
 4. Confirm the suggestions dropdown appears next to the caret, not offset
    further down the page.

 Fixes #9289

-- 
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/9289#comment:2>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac


More information about the buddypress-trac mailing list