Merge branch 'master' into rewrite-tyepscript-definitions

This commit is contained in:
Eric Liu 2020-11-19 06:16:50 -08:00 committed by GitHub
commit 56718c633d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 81 additions and 5 deletions

View file

@ -51,6 +51,9 @@
});
function focus(element) {
if(selectorPrimaryFocus == null) {
return
}
const node =
(element || innerModal).querySelector(selectorPrimaryFocus) || buttonRef;
if (node != null) node.focus();