fix cursor position after function autocomplete (#9396)

Closes #9395
This commit is contained in:
Aditya 2020-02-26 23:11:24 +05:30 committed by GitHub
parent c9faf3e148
commit e506fc9fdf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 2 deletions

View File

@ -93,8 +93,6 @@ export class QueryInput extends React.PureComponent<QueryInputProps, QueryInputS
completer: {
insertMatch: (editor: any, data: any) => {
editor.completer.insertMatch({ value: data.caption });
const pos = editor.getCursorPosition();
editor.gotoLine(pos.row + 1, pos.column - 1);
},
},
};