Skip to content

Commit ce06433

Browse files
committed
Fix missing scrolling when editing comments / replies
1 parent 159a21a commit ce06433

File tree

4 files changed

+12
-4
lines changed

4 files changed

+12
-4
lines changed

ts/WoltLabSuite/Core/Component/Comment/Response/woltlab-core-comment-response.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,9 @@ export class WoltlabCoreCommentResponseElement extends HTMLParsedElement {
103103
});
104104

105105
window.setTimeout(() => {
106-
UiScroll.element(this);
106+
UiScroll.element(this, () => {
107+
getCkeditorById(this.#editorId)!.focus(false);
108+
});
107109
}, 250);
108110
}
109111

ts/WoltLabSuite/Core/Component/Comment/woltlab-core-comment.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,9 @@ export class WoltlabCoreCommentElement extends HTMLParsedElement {
104104
});
105105

106106
window.setTimeout(() => {
107-
UiScroll.element(this);
107+
UiScroll.element(this, () => {
108+
getCkeditorById(this.#editorId)!.focus(false);
109+
});
108110
}, 250);
109111
}
110112

wcfsetup/install/files/js/WoltLabSuite/Core/Component/Comment/Response/woltlab-core-comment-response.js

Lines changed: 3 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

wcfsetup/install/files/js/WoltLabSuite/Core/Component/Comment/woltlab-core-comment.js

Lines changed: 3 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)