mdx-editor / mdx-editor/editor

[BUG] Pressing backspace in table causes page to freeze (Safari, Tahoe)

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

Nobody has claimed this yet.

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

Description

  • I have searched for similar issues in both open and closed tickets and cannot find a duplicate.
  • I have read the documentation and cannot find an answer.

Describe the bug
In a table, if you delete all characters from a cell with the backspace button on your keyboard, then press backspace again, the whole website freezes.

To Reproduce
Steps to reproduce the behavior:

  1. Go to mdxeditor.dev
  2. Go to "Try it live"
  3. Scroll down to the table
  4. As an example, lets go to the cell where it says "Python Hat"
  5. Delete all characters with backspace
  6. Press backspace when there aren't any characters left
  7. Experience the page freezing

Expected behavior
The page to not freeze.

Desktop (please complete the following information):

  • OS: macOS Tahoe
  • Safari ( I was not able to reproduce the bug with Chrome)

Additional context
As stated in the section above, I was not able to reproduce the bug in Chrome which I find to be interesting.

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 freeze in Safari on macOS Tahoe at mdxeditor.dev's “Try it live” table, using the “Python Hat” cell and the listed backspace sequence. Trace the table editing path involved in that reproduction and verify that pressing backspace on an empty cell no longer freezes the page, while checking that the behavior remains correct in Chrome.

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
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.