mirror of
https://github.com/livebook-dev/livebook.git
synced 2025-10-11 14:06:20 +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() {
|
updated() {
|
||||||
|
if (this.el !== document.activeElement) {
|
||||||
this.__focus();
|
this.__focus();
|
||||||
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
__focus() {
|
__focus() {
|
||||||
|
|
Loading…
Add table
Reference in a new issue