mirror of
https://github.com/livebook-dev/livebook.git
synced 2024-12-27 09:53:08 +08:00
Only focus when needed (#283)
This commit is contained in:
parent
74702a4583
commit
a750d528c4
1 changed files with 3 additions and 1 deletions
|
@ -7,7 +7,9 @@ const FocusOnUpdate = {
|
|||
},
|
||||
|
||||
updated() {
|
||||
this.__focus();
|
||||
if (this.el !== document.activeElement) {
|
||||
this.__focus();
|
||||
}
|
||||
},
|
||||
|
||||
__focus() {
|
||||
|
|
Loading…
Reference in a new issue