Update: ace编辑器在卸载时不再自动将滚动条移动到顶部
This commit is contained in:
@@ -357,11 +357,6 @@ class EditorAce extends EditorBase {
|
|||||||
focus() {
|
focus() {
|
||||||
this.#editor_.focus();
|
this.#editor_.focus();
|
||||||
}
|
}
|
||||||
|
|
||||||
onUnmounted() {
|
|
||||||
this.scrollToTop();
|
|
||||||
super.onUnmounted();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
Mixly.EditorAce = EditorAce;
|
Mixly.EditorAce = EditorAce;
|
||||||
|
|||||||
Reference in New Issue
Block a user