mirror of
https://github.com/apache/superset.git
synced 2026-04-22 01:24:43 +00:00
fix(sqllab): Skip AceEditor in inactive tabs (#30171)
This commit is contained in:
@@ -880,15 +880,17 @@ const SqlEditor: FC<Props> = ({
|
||||
startQuery={startQuery}
|
||||
/>
|
||||
)}
|
||||
<AceEditorWrapper
|
||||
autocomplete={autocompleteEnabled}
|
||||
onBlur={onSqlChanged}
|
||||
onChange={onSqlChanged}
|
||||
queryEditorId={queryEditor.id}
|
||||
onCursorPositionChange={handleCursorPositionChange}
|
||||
height={`${aceEditorHeight}px`}
|
||||
hotkeys={hotkeys}
|
||||
/>
|
||||
{isActive && (
|
||||
<AceEditorWrapper
|
||||
autocomplete={autocompleteEnabled}
|
||||
onBlur={onSqlChanged}
|
||||
onChange={onSqlChanged}
|
||||
queryEditorId={queryEditor.id}
|
||||
onCursorPositionChange={handleCursorPositionChange}
|
||||
height={`${aceEditorHeight}px`}
|
||||
hotkeys={hotkeys}
|
||||
/>
|
||||
)}
|
||||
{renderEditorBottomBar(showEmptyState)}
|
||||
</div>
|
||||
<SouthPane
|
||||
|
||||
Reference in New Issue
Block a user