Skip to content

Conversation

@makhnatkin
Copy link
Collaborator

@makhnatkin makhnatkin commented Oct 10, 2025

Problem

Cursor gets stuck when navigating with Arrow Up/Down keys in nested sections because the editor tries to place gap cursor between adjacent block containers, which is invalid per schema.

Fix

Added validation in findFakeParaPosClosestToPos() to skip invalid positions between block containers (content: 'block+') and search for valid positions at different depths. Special handling for Arrow Down prevents cursor from getting stuck at end-of-parent positions when nodeAfter = null.

@makhnatkin makhnatkin requested a review from d3m1d0v as a code owner October 10, 2025 10:59
@gravity-ui-bot
Copy link
Contributor

Preview is ready.

@gravity-ui-bot
Copy link
Contributor

Visual Tests Report is ready.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants