chore(animated modal): add method to get previous modal in chain

This commit is contained in:
Miodec 2024-03-24 23:02:05 +01:00
parent 6f75abef70
commit 7915df57a8

View file

@ -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)) {