From b690fe18e6bf78698bb24c70ef100f106ccd388e Mon Sep 17 00:00:00 2001 From: Zachary Foster Date: Thu, 17 Sep 2020 13:00:15 -0400 Subject: [PATCH] Focuses header control element on Add Row click in Cassandra (#212) --- src/Explorer/Panes/Tables/AddTableEntityPane.ts | 2 +- src/Explorer/Panes/Tables/TableAddEntityPane.html | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Explorer/Panes/Tables/AddTableEntityPane.ts b/src/Explorer/Panes/Tables/AddTableEntityPane.ts index 3652a0a6a..9e4825d45 100644 --- a/src/Explorer/Panes/Tables/AddTableEntityPane.ts +++ b/src/Explorer/Panes/Tables/AddTableEntityPane.ts @@ -80,7 +80,7 @@ export default class AddTableEntityPane extends TableEntityPane { this.updateIsActionEnabled(); super.open(); } - const focusElement = document.getElementById("addTableEntityValue"); + const focusElement = document.getElementById("closeAddEntityPane"); focusElement && focusElement.focus(); } diff --git a/src/Explorer/Panes/Tables/TableAddEntityPane.html b/src/Explorer/Panes/Tables/TableAddEntityPane.html index f0975647c..575f1ef44 100644 --- a/src/Explorer/Panes/Tables/TableAddEntityPane.html +++ b/src/Explorer/Panes/Tables/TableAddEntityPane.html @@ -21,6 +21,7 @@