mirror of
https://github.com/discourse/discourse.git
synced 2025-04-13 21:22:25 +08:00
FIX: Scroll to top shortcut regressed in b757275 (#27807)
This commit is contained in:
parent
08891ccf06
commit
0165460626
@ -340,11 +340,11 @@ export default Controller.extend(bufferedProperty("model"), {
|
||||
|
||||
@action
|
||||
jumpTop(event) {
|
||||
if (wantsNewWindow(event)) {
|
||||
if (event && wantsNewWindow(event)) {
|
||||
return;
|
||||
}
|
||||
|
||||
event.preventDefault();
|
||||
event?.preventDefault();
|
||||
DiscourseURL.routeTo(this.get("model.firstPostUrl"), {
|
||||
skipIfOnScreen: false,
|
||||
keepFilter: true,
|
||||
|
Loading…
x
Reference in New Issue
Block a user