mdx-editor / mdx-editor/editor

Selection restoration does not work in Safari after toolbar operations

Open
#263 1 comment 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
3.7k
Forks
307
Avg merge
14h 22m
Merged PRs (30d)
5

Description

Steps to reproduce -

  • Go to demo page - https://mdxeditor.dev/editor/demo
  • Place the cursor on any text
  • Change the block style to (quote, heading1..2 etc)
  • This will cause the page to scroll to bottom

Browser - Safari - Version 17.1 (19616.2.9.11.7)
OS - MacOS Sonoma 14.1

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 issue on the demo page at https://mdxeditor.dev/editor/demo in Safari 17.1 on macOS Sonoma, following the listed toolbar-operation steps. Trace the selection restoration behavior during block-style changes; done means the cursor remains restored and the page does not scroll to the bottom.

Written by the indexing model from the issue text.

Assessment

Tech stack
react, typescript
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 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.