0
0
Fork 1
Spiegel von https://github.com/paviliondev/discourse-custom-wizard.git synchronisiert 2024-11-09 20:02:54 +01:00

FIX: ensure scrollTop on step route transition

Dieser Commit ist enthalten in:
Angus McLeod 2023-04-03 15:07:25 +10:00
Ursprung 454ed607b4
Commit f29f300a6f

Datei anzeigen

@ -1,6 +1,8 @@
import I18n from "I18n";
import { getCachedWizard } from "../models/custom-wizard";
import Route from "@ember/routing/route";
import { scrollTop } from "discourse/mixins/scroll-top";
import { action } from "@ember/object";
export default Route.extend({
beforeModel() {
@ -48,4 +50,10 @@ export default Route.extend({
controller.setProperties(props);
},
@action
didTransition() {
scrollTop();
return true;
},
});