Fix access key creation

The $$ field is only available in legacy Polymer
This commit is contained in:
Vinicius Fortuna 2020-05-15 00:19:48 -04:00
parent b6fc278080
commit db692b9d76

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();
}