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

Bug: Cursor jumps to start of code editor window on error #131

Closed
bradbarrow opened this issue Mar 3, 2020 · 3 comments · Fixed by #134
Closed

Bug: Cursor jumps to start of code editor window on error #131

bradbarrow opened this issue Mar 3, 2020 · 3 comments · Fixed by #134

Comments

@bradbarrow
Copy link

I am trying my best to get a screen-capture of this happening.

Sometimes whilst coding in the playroom editor if I cause an error to be thrown (e.g. by using a variable that doesn't exist <Button size={batm as I type the m it'll throw an error (the frame will say "batm" is undefined) and my cursor jumps to the start of the editor.

It doesn't always do this - and I'm not sure what conditions cause it. Sometimes I get errors like that and I can continue as normal, other times it jumps me around.

Posting here incase anyone else is able to re-create. (Have noted it happening on a number of engineers machines so it's not a messy local-environment thing).

@michaeltaranto
Copy link
Contributor

Yes we're aware of the issue. It can also occur with rapid typing. The issue is one of a few problems we are facing with codemirror at the moment.

Thanks for logging, hopefully get to this soon.

@bradbarrow
Copy link
Author

I don't know if this helps at all but I can confirm that I can reliable reproduce this by hitting backspace twice in quick succession. Other keys in quick succession don't reliably trigger this issue but a double backspace immediately sends my cursor to the top.

@michaeltaranto
Copy link
Contributor

Yes that is the most common occurrence for me too. Thanks for the feedback.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants