Skip to content

Slash command menu opens downwards and is cut off when moving the caret to another / by mouse click #3076

Closed

Description

@tammi-23

Initial Checklist

  • I understand this is a bug report and questions should be posted in the Community Discussions
  • I searched issues and couldn’t find anything (or linked relevant results below)

Bug Description

When a slash command menu is open on the last line of the document and the caret is moved by mouse click into a line above that also contains a /, the menu re-opens below the new caret position and is clipped to a few pixels of height instead of flipping upwards.

Reproduction Steps

  1. Open a document in the text editor and add enough content so the last line sits near the bottom of the viewport, but not flush against it (roughly 50–350px of space below the caret line).
  2. Type / in a line somewhere in the middle, so that line contains a slash command trigger.
  3. Type / on the last line of the document — the menu opens upwards, correctly.
  4. Click into the line from step 2 (the one above, also containing a /).

Expected Outcome

Te menu stays fully visible and opens upwards, because there is not enough room below the caret.

Actual Outcome

The menu is rendered below the caret, clipped to the remaining space (roughly 100px), with the list scrolling inside the clipped box.

Activity

  1. added theissue type on Aug 11, 2026
  2. self-assigned this
    on Aug 11, 2026
  3. added a commit that references this issue on Aug 12, 2026
  4. added a commit that references this issue on Aug 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions