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

fix: Resolve cursor position & toolbar flicker bugs #134

Merged
merged 6 commits into from
Mar 11, 2020

Conversation

michaeltaranto
Copy link
Contributor

@michaeltaranto michaeltaranto commented Mar 10, 2020

Bug fixes

  • Fix cursor position jumping back to start
  • Fix toolbar flicker and position bug when toggling snippets panel

Refactor

  • Restructured test suite to better isolate different groups of tests

Fixes #131

@michaeltaranto michaeltaranto changed the title fix(editor): Resolve cursor position resetting on code updates fix: Resolve cursor position & toolbar flicker bugs Mar 11, 2020
@@ -149,7 +149,7 @@ export const CodeEditor = ({ code, onChange, previewCode, hints }: Props) => {
return () => {
window.removeEventListener('keydown', handleKeyDown);
};
}, [dispatch, setCursorPosition]);
}, [dispatch]);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like we should have linting for this. Should look to add this at some stage.

@michaeltaranto michaeltaranto merged commit b75bc63 into master Mar 11, 2020
@michaeltaranto michaeltaranto deleted the fix-cursor-position branch March 11, 2020 22:03
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 this pull request may close these issues.

Bug: Cursor jumps to start of code editor window on error
3 participants