Focuses header control element on Add Row click in Cassandra (#212)

This commit is contained in:
Zachary Foster 2020-09-17 13:00:15 -04:00 committed by GitHub
parent 1bbe08378c
commit b690fe18e6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View File

@ -80,7 +80,7 @@ export default class AddTableEntityPane extends TableEntityPane {
this.updateIsActionEnabled(); this.updateIsActionEnabled();
super.open(); super.open();
} }
const focusElement = document.getElementById("addTableEntityValue"); const focusElement = document.getElementById("closeAddEntityPane");
focusElement && focusElement.focus(); focusElement && focusElement.focus();
} }

View File

@ -21,6 +21,7 @@
<div class="firstdivbg headerline"> <div class="firstdivbg headerline">
<span role="heading" aria-level="2" data-bind="text: title"></span> <span role="heading" aria-level="2" data-bind="text: title"></span>
<div <div
id="closeAddEntityPane"
class="closeImg" class="closeImg"
role="button" role="button"
aria-label="Close pane" aria-label="Close pane"