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

RangeError: Selection points outside of document #449

Closed
1 of 2 tasks
aboveyunhai opened this issue Apr 23, 2022 · 0 comments · Fixed by #452
Closed
1 of 2 tasks

RangeError: Selection points outside of document #449

aboveyunhai opened this issue Apr 23, 2022 · 0 comments · Fixed by #452
Labels
bug Something isn't working triage New issues that needs consideration

Comments

@aboveyunhai
Copy link

aboveyunhai commented Apr 23, 2022

Bug report

Packages affected

  • sandpack-client
  • sandpack-react

Description of the problem

RangeError: Selection points outside of document

What steps can we take to reproduce the problem?

click the last "line/character" within the code editor, and then update the code via updateActiveCode() , updateFile() or updateCurrentFile()

If you select anyhting else other than last line, no error will occur.
This error cannot be try {} catch {}, it will crash the application.

Link to sandbox: Sample code (optional)

screen1

@aboveyunhai aboveyunhai added bug Something isn't working triage New issues that needs consideration labels Apr 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working triage New issues that needs consideration
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant