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

Fixing broken custom code snippets is interrupted by switching focus on Script preview #454

Open
going-confetti opened this issue Feb 5, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@going-confetti
Copy link
Collaborator

Brief summary

See steps to reproduce

Image

Image

k6 Studio version

0.12.0

OS

macOS

Steps to reproduce the problem

  • Type something in the custom code and make an intentional syntax error (e.g. console.log(,))
  • Start fixing your input - for example, try typing 123 before the comma
  • The moment your input resolves the error (console.log(1,) vs console.log(123,)), the focus will be moved to the code editor - this makes it really annoying to edit code snippets

Expected behaviour

The script preview shouldn't receive focus on re-mount

Actual behaviour

The script preview received focus on re-mount

@going-confetti going-confetti added bug Something isn't working needs-triage labels Feb 5, 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