mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-11-09 13:44:29 +08:00
chore(animated modal): add method to get previous modal in chain
This commit is contained in:
parent
6f75abef70
commit
7915df57a8
1 changed files with 4 additions and 0 deletions
|
|
@ -118,6 +118,10 @@ export default class AnimatedModal {
|
|||
Skeleton.save(this.dialogId);
|
||||
}
|
||||
|
||||
getPreviousModalInChain(): AnimatedModal | undefined {
|
||||
return this.previousModalInChain;
|
||||
}
|
||||
|
||||
async runSetup(): Promise<void> {
|
||||
this.wrapperEl.addEventListener("keydown", (e) => {
|
||||
if (e.key === "Escape" && isPopupVisible(this.dialogId)) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue