Skip to content
Snippets Groups Projects
Commit c5088589 authored by Tom Robinson's avatar Tom Robinson
Browse files

Re-focus the SQL editor after clicking 'Run Query' to prevent 'delete' from navigating back

parent 513ecb3c
Branches
Tags
No related merge requests found
/*global ace*/
import React from "react";
import DataReference from '../query_builder/DataReference.jsx';
......@@ -492,6 +494,9 @@ CardControllers.controller('CardDetail', [
});
MetabaseAnalytics.trackEvent('QueryBuilder', 'Run Query', dataset_query.type);
// HACK: prevent SQL editor from losing focus
try { ace.edit("id_sql").focus() } catch (e) {};
}
function getDefaultQuery() {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment