Select All, Paste keyboard combo in live editor returns error in Firefox

Open
#375 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
38/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
react, typescript
Domain
frontend

Research direction

Reproduce the issue in Firefox at the react-live demo URL using the documented Ctrl+A and Ctrl+V steps, then compare the behavior with a version before react-live 3.x. Done means pasting selected code works in the live editor without a SyntaxError.

Written by the indexing model from the issue text.

Description

Steps to reproduce:

  1. Use Firefox
  2. Go to https://formidable.com/open-source/react-live/
  3. Click on one of the of the demos to edit the code.
  4. Press CTRL+A to select all
  5. Press CTRL+V to paste the code you want
  6. You get SyntaxError and code doesn't get pasted

Expected behaviour: Paste should work properly.

Root cause: Not sure, but this worked before version react-live 3.x, I detected it while trying to migrate Docusaurus to 3.0

Video demonstration:

https://github.com/FormidableLabs/react-live/assets/6343485/9770b6a8-bef5-460e-86c1-99f5ef47090d

Dominant language
TypeScript
Stars
4.6k
Forks
260
PR merge metrics
No merged PRs in 30d

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.

More from FormidableLabs/react-live

All issues in FormidableLabs/react-live

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.