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

Tutorial "solve" button unresponsive and console errors if active file disappears #868

Open
dslatkin opened this issue Nov 15, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@dslatkin
Copy link

dslatkin commented Nov 15, 2024

Describe the bug

Under some conditions, if you have an active file in a tutorial exercise that would otherwise disappear when you click "Solve", clicking solve doesn't do anything and console errors a message. If you change to a file that will persist in the solution, then the solve button works as expected.

Reproduction

  1. Go to this playground page
  2. Click the shared.js file in the sidebar
  3. Click "Solve" and observe the browser's console error
  4. Click the Counter.svelte file in the sidebar
  5. Click "Solve" and notice that it works

Logs

utils.DjNpXng4.js:1 Uncaught Error: Invalid selection /src/lib/shared.js
    at Wk.set (Editor.BZXAGenm.js:426:10342)
    at HTMLButtonElement.toggle (25.DO2QsNE4.js:15:8330)
    at b.__click (25.DO2QsNE4.js:15:3898)
    at HTMLDivElement.N (utils.DjNpXng4.js:1:1472)

System Info

Browser version info:

Arc	130.0.6723.117 (Official Build) (arm64) 
Revision	37382504fe66965a688029d08706ddadca7ceb46-refs/branch-heads/6723@{#1765}
OS	macOS Version 15.0 (Build 24A5264n)
JavaScript	V8 13.0.245.18
User Agent	Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.0.0 Safari/537.36

Severity

annoyance

@Conduitry Conduitry transferred this issue from sveltejs/svelte Nov 15, 2024
@eltigerchino eltigerchino added the bug Something isn't working label Jan 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants