Fix modal timeout while hidding.

This commit is contained in:
florian committed 2021-08-02 13:36:03 +02:00
1 parent 09a66b1f58
commit 00f82b27cb
1 file changed
+2
@@ -22,7 +22,9 @@ export class ModalComponent implements OnInit {
if (!modalContentClass) {
this.displayed = false;
window.setTimeout(() => {
if (!this.displayed) {
this.modalContent?.detach();
}
}, 1000);
} else {
this.displayed = true;