StackExchange / StackExchange/Stacks-Editor

Cursor disappears in long posts on iOS Chrome/Safari after entering block elements

Open
#206 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug mode - markdown mode - rich text
Dominant language
TypeScript
Stars
437
Forks
61
Avg merge
16h 2m
Merged PRs (30d)
8

Description

Describe the bug

When I try to edit text towards the end of a long post (or sometimes middle, for very long posts), my cursor disappears. Where exactly this happens seems to depend on where the scroll bar is.

I can't see where I'm typing except that text appears (or disappears, when backspacing), and trying to move around my cursor is hopeless because tapping doesn't make it appear and neither does holding the spacebar. I can't see if I have any text selected either (as I sometimes end up deleting the entire body of the post).

Appears to happen on both editor modes

@KyleMit reports: "seems to happen when clicking into a complicated node (table / codeblock) and cursor is never available after that, even when clicking elsewhere"

Expected behavior
Always see the cursor

Screenshots

Desktop (please complete the following information):

  • User reported this happening on iOS 15.5-15.6 (possibly earlier), Google Chrome 103.0.5060.63, and Safari (latest)
  • User noted: "I have not encountered this on desktop, which is the device I have to switch to in order to make edits."
  • @KyleMit was able to repro on iPad

Additional context

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the disappearing cursor in both editor modes on iOS Chrome or Safari, especially after entering a table or code block and then tapping elsewhere. Compare behavior in short and long posts; done means the cursor remains visible and text selection remains usable while editing those posts.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
frontend, mobile
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.