This is an automated email from the ASF dual-hosted git repository. jli pushed a commit to branch 4.1 in repository https://gitbox.apache.org/repos/asf/superset.git
commit 7e0564489b0b056b70cfe5f5e35a60b71da89f77 Author: Rafael Benitez <rebenitez1...@gmail.com> AuthorDate: Tue May 20 10:38:55 2025 -0400 fix(Sqllab): Autocomplete got stuck in UI when open it too fast (#33522) (cherry picked from commit b4e2406385e0cfbb9a8c23f093f7ec51042e8dbf) --- superset-frontend/src/SqlLab/components/SqlEditor/index.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/superset-frontend/src/SqlLab/components/SqlEditor/index.tsx b/superset-frontend/src/SqlLab/components/SqlEditor/index.tsx index 731053ac0b..f9d745e377 100644 --- a/superset-frontend/src/SqlLab/components/SqlEditor/index.tsx +++ b/superset-frontend/src/SqlLab/components/SqlEditor/index.tsx @@ -322,6 +322,8 @@ const SqlEditor: FC<Props> = ({ const SqlFormExtension = extensionsRegistry.get('sqleditor.extension.form'); + const isTempId = (value: unknown): boolean => Number.isNaN(Number(value)); + const startQuery = useCallback( (ctasArg = false, ctas_method = CtasEnum.Table) => { if (!database) { @@ -899,7 +901,7 @@ const SqlEditor: FC<Props> = ({ )} {isActive && ( <AceEditorWrapper - autocomplete={autocompleteEnabled} + autocomplete={autocompleteEnabled && !isTempId(queryEditor.id)} onBlur={onSqlChanged} onChange={onSqlChanged} queryEditorId={queryEditor.id}