mirror of
https://github.com/apache/superset.git
synced 2026-04-23 18:14:56 +00:00
[SQL Lab] Disable autocomplete when typing numbers (#9008)
This commit is contained in:
@@ -131,6 +131,11 @@ class AceEditorWrapper extends React.PureComponent {
|
||||
this.props.onChange(text);
|
||||
}
|
||||
getCompletions(aceEditor, session, pos, prefix, callback) {
|
||||
// If the prefix starts with a number, don't try to autocomplete with a
|
||||
// table name or schema or anything else
|
||||
if (!isNaN(parseInt(prefix, 10))) {
|
||||
return;
|
||||
}
|
||||
const completer = {
|
||||
insertMatch: (editor, data) => {
|
||||
if (data.meta === 'table') {
|
||||
|
||||
Reference in New Issue
Block a user