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(browser-repl): reset autocomplete on editor focus COMPASS-4760 #1345

Merged
merged 2 commits into from
Sep 13, 2022

Conversation

gribnoysup
Copy link
Contributor

Similar to how we do this in Compass, this patch changes editor component to reset autocompleter every time editor is focused


if (prevProps.moveCursorToTheEndOfInput !== this.props.moveCursorToTheEndOfInput) {
if (this.props.moveCursorToTheEndOfInput) {
this.moveCursorToTheEndOfInput();
Copy link
Member

Choose a reason for hiding this comment

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

Nice cleanup on these prop usages.

@addaleax addaleax merged commit f52424a into main Sep 13, 2022
@addaleax addaleax deleted the compass-4760-autocomplete branch September 13, 2022 09:33
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.

3 participants