Skip to content

Conversation

gribnoysup
Copy link
Collaborator

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