mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-12-11 22:06:41 +08:00
changed when active page is changed and where page after hide is called
fixes #3339
This commit is contained in:
parent
45ffa96e67
commit
6b25ac9a11
1 changed files with 2 additions and 2 deletions
|
|
@ -51,13 +51,13 @@ export async function change(
|
|||
250,
|
||||
async () => {
|
||||
PageTransition.set(false);
|
||||
ActivePage.set(nextPage.name);
|
||||
previousPage?.afterHide();
|
||||
nextPage.element.addClass("active");
|
||||
resolve(true);
|
||||
nextPage?.afterShow();
|
||||
},
|
||||
async () => {
|
||||
ActivePage.set(nextPage.name);
|
||||
previousPage?.afterHide();
|
||||
await nextPage?.beforeShow(params);
|
||||
}
|
||||
);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue