Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Block Content selection doesn't work for long content #8896

Open
RobinOstner opened this issue Mar 11, 2025 · 0 comments
Open

Block Content selection doesn't work for long content #8896

RobinOstner opened this issue Mar 11, 2025 · 0 comments

Comments

@RobinOstner
Copy link

Describe the bug

When trying to select a long text or content section in the block content the selection jumps back to the beginning when scrolling is needed, making it impossible to select text which spans across multiple viewport heights.

To Reproduce

Steps to reproduce the behavior:

  1. Add block content which is longer than one viewport height making it scrollable.
  2. Try selecting the text by scrolling down while selecting either with the mouse or even with the keyboard.
  3. The text selection will jump back to the top making it impossible to select the entire text

Expected behavior

The text selection should behave normally, like in any multiline input field.

Screenshots

Here is a quick screenrecording. The video was taken before updating to latest Sanity but the issue still persists.
https://github.com/user-attachments/assets/b2bfddc4-fc19-46b4-9f00-9545d9e240ba

Which versions of Sanity are you using?

@sanity/cli (global) 3.79.0 (up to date)
@sanity/icons 3.7.0 (up to date)
@sanity/image-url 1.1.0 (up to date)
@sanity/locale-de-de 1.1.17 (up to date)
@sanity/vision 3.79.0 (up to date)
sanity 3.79.0 (up to date)

What operating system are you using?

Windows 11

Which versions of Node.js / npm are you running?

NPM: 10.2.1
Node: v18.18.2

Additional context

No

Security issue?

No

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

No branches or pull requests

1 participant