You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Slash command menu opens downwards and is cut off when moving the caret to another / by mouse click #3076
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
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).
Type / in a line somewhere in the middle, so that line contains a slash command trigger.
Type / on the last line of the document — the menu opens upwards, correctly.
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
Merge pull request #3077 from /issues/3076
Merge pull request #3077 from /issues/3076