From 290ca4aba51614248a53255352cdf651c7b77465 Mon Sep 17 00:00:00 2001 From: Zachary Foster Date: Wed, 23 Sep 2020 18:29:04 -0400 Subject: [PATCH] Commits add table entity pane changes without steve's changes (#227) --- src/Explorer/Panes/Tables/AddTableEntityPane.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/Explorer/Panes/Tables/AddTableEntityPane.ts b/src/Explorer/Panes/Tables/AddTableEntityPane.ts index 9e4825d45..11561b1c1 100644 --- a/src/Explorer/Panes/Tables/AddTableEntityPane.ts +++ b/src/Explorer/Panes/Tables/AddTableEntityPane.ts @@ -69,6 +69,7 @@ export default class AddTableEntityPane extends TableEntityPane { ); this.updateIsActionEnabled(); super.open(); + this.focusValueElement(); }); } else { this.displayedAttributes( @@ -79,8 +80,12 @@ export default class AddTableEntityPane extends TableEntityPane { ); this.updateIsActionEnabled(); super.open(); + this.focusValueElement(); } - const focusElement = document.getElementById("closeAddEntityPane"); + } + + private focusValueElement() { + const focusElement = document.getElementById("addTableEntityValue"); focusElement && focusElement.focus(); }