mirror of
https://github.com/apache/superset.git
synced 2026-04-24 02:25:13 +00:00
Insert a space after auto complete (#6717)
* Insert space after auto complete * Fix autocomplete with space
This commit is contained in:
@@ -124,7 +124,13 @@ class AceEditorWrapper extends React.PureComponent {
|
||||
this.props.onChange(text);
|
||||
}
|
||||
getCompletions(aceEditor, session, pos, prefix, callback) {
|
||||
callback(null, this.state.words);
|
||||
const completer = {
|
||||
insertMatch: (editor, data) => {
|
||||
editor.completer.insertMatch({ value: data.caption + ' ' });
|
||||
},
|
||||
};
|
||||
const words = this.state.words.map(word => ({ ...word, completer }));
|
||||
callback(null, words);
|
||||
}
|
||||
setAutoCompleter(props) {
|
||||
// Loading table and column names as auto-completable words
|
||||
|
||||
Reference in New Issue
Block a user