Skip to content

RTC: In core/details block, cursor in hidden blocks is rendered outside of block #79641

Closed

Description

@alecgeatches

Below, user A edits a core/details internal block, and user B sees a phantom cursor:

summary-block.mov

Ideally we should hide a cursor when it is editing a block that is not visible to other users, or otherwise indicate editing within a block without drawing a moving cursor.

Activity

  1. added theissue type on Jun 29, 2026
  2. changed the title [-]RTC: In core/details block, cursor in hidden inner blocks is rendered incorrectly[/-] [+]RTC: In core/details block, cursor in hidden blocks is rendered outside of block[/+] on Jun 29, 2026
  3. giteshsarvaiya commented on Jun 30, 2026

    @giteshsarvaiya
    Contributor

    hey @alecgeatches

    Thanks for filing this, I faced the same bug and turns out you already filed it!! A couple of quick clarifications before I start:

    1. Of the two options mentioned — suppressing the cursor entirely vs. showing an alternate "editing inside" indicator — which would you prefer for a first pass?
    2. Should this be specific to core/details, or generic to any block with hidden/collapsed content? A hardcoded check would only cover core/details, while a generic "is this element actually visible" check would also cover core/accordion (which has the same collapsed-panel problem) and any future blocks like Tabs if that ships. I'd lean toward the generic approach for that reason — does that match your expectation?
    3. Should this also apply to text selections inside a collapsed block, not just the single cursor?
    4. If the indicator option is preferred, is there a design reference, or is something minimal (e.g. a small badge on the visible parent) fine for v1?
    5. If the viewer expands the hidden section themselves while the other user is still editing inside it, should the cursor reappear immediately, or is it okay if it only catches up on the next natural recompute?

    Happy to start work once the direction is confirmed. Thanks!

  4. alecgeatches commented on Jul 1, 2026

    @alecgeatches
    ContributorAuthor

    Hello @giteshsarvaiya, great questions! Here's what I'm thinking:

    1. 'suppressing the cursor entirely vs. showing an alternate "editing inside" indicator': I think we can just suppress the cursor when it's inside hidden blocks.
    2. Should this be specific to core/details, or generic to any block with hidden/collapsed content? Good call-out. Let's definitely aim for generic here, ideally the solution for the summary block can apply to other foldable/hidden blocks.
    3. Should this also apply to text selections? Selections contained entirely within a hidden section should also remain hidden. If we also solve the mixed-content selection issue, I think selections that range over hidden blocks should just skip drawing the hidden part of the selection.
    4. If the indicator option is preferred, is there a design reference? Nothing here, as we can just hide hidden cursors for now.
    5. If the viewer expands the hidden section themselves while the other user is still editing inside it, should the cursor reappear immediately, or is it okay if it only catches up on the next natural recompute? I think a short delay in cursor drawing is okay. The 10-second general redraw delay might be too long to be useful here.
  5. giteshsarvaiya commented on Jul 2, 2026

    @giteshsarvaiya
    Contributor

    Hi @alecgeatches , the solution to this one is straightforward, but it is dependent in the text selection logic as well, so I will finish the #79643 first, then this one.

    This is what I think, feel free to let me know if I should do otherwise for the achieving deadline.

    Thanks for your bytes on my queriers, appreciate the quick response.

  6. moved this from ❓ Triage to 🏗️ In Progress in WordPress 7.1 Editor Taskson Jul 6, 2026
  7. t-hamano commented on Jul 9, 2026

    @t-hamano
    Contributor

    Since the collaborative editing feature has been punted from the 7.1 release, I would like to change the status of this issue on the project board accordingly.

  8. moved this from 🏗️ In Progress to 🦵 Punted to 7.2 in WordPress 7.1 Editor Taskson Jul 9, 2026
  9. moved this from 🦵 Punted to 7.2 to 🏗️ In Progress in WordPress 7.1 Editor Taskson Aug 10, 2026
  10. moved this from 🏗️ In Progress to 🦵 Punted to 7.2 in WordPress 7.1 Editor Taskson Aug 11, 2026
  11. added a commit that references this issue on Aug 20, 2026
    70af7db
  12. moved this from 🏗️ In Progress to ✅ Done in WordPress 7.2 Editor Taskson Aug 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions