Only focus when needed (#283)

This commit is contained in:
Tomasz Tomczyk 2021-05-21 00:59:00 +01:00 committed by GitHub
parent 74702a4583
commit a750d528c4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -7,7 +7,9 @@ const FocusOnUpdate = {
},
updated() {
this.__focus();
if (this.el !== document.activeElement) {
this.__focus();
}
},
__focus() {