Skip to content

Commit 00871f1

Browse files
committed
fix: Remove modal from list after animation finishes
Signed-off-by: Akshat Patel <[email protected]>
1 parent 5a94b27 commit 00871f1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/modal/base-modal.service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,8 +85,8 @@ export class BaseModalService {
8585
// Let animation finish before component is removed
8686
setTimeout(() => {
8787
this.placeholderService.destroyComponent(BaseModalService.modalList[index]);
88+
BaseModalService.modalList.splice(index, 1);
8889
}, 240);
89-
BaseModalService.modalList.splice(index, 1);
9090
}
9191
}
9292

0 commit comments

Comments
 (0)