Merge pull request #653 from Jigsaw-Code/fortuna-key

Fix access key creation
This commit is contained in:
Vinicius Fortuna 2020-05-15 13:21:25 -04:00 committed by GitHub
commit c02fdec396
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -643,7 +643,7 @@ export class ServerView extends DirMixin(PolymerElement) {
this.push('accessKeyRows', accessKey);
// Force render the access key list so that the input is present in the DOM
this.$.accessKeysContainer.querySelector('dom-repeat').render();
const input = this.$$(`#access-key-${accessKey.id}`);
const input = this.shadowRoot.querySelector(`#access-key-${accessKey.id}`);
input.select();
}