Skip to content

Commit 5a94b27

Browse files
authored
fix: Match delay to transition time
1 parent d4408f8 commit 5a94b27

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/modal/base-modal.service.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ export class BaseModalService {
5252
component.instance.open = false;
5353
}),
5454
// delay closing by an arbitrary amount to allow the animation to finish
55-
delay(150)
55+
delay(240)
5656
).subscribe(() => {
5757
this.placeholderService.destroyComponent(component);
5858
// filter out our component
@@ -85,7 +85,7 @@ export class BaseModalService {
8585
// Let animation finish before component is removed
8686
setTimeout(() => {
8787
this.placeholderService.destroyComponent(BaseModalService.modalList[index]);
88-
}, 300);
88+
}, 240);
8989
BaseModalService.modalList.splice(index, 1);
9090
}
9191
}

0 commit comments

Comments
 (0)