Skip to content

Commit 1234e78

Browse files
committed
fix(router): fix routable modal destroy if modal route has async prop
1 parent 6d40482 commit 1234e78

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/core/modules/router/modal.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,12 @@ function modalLoad(modalType, route, loadOptions = {}, direction) {
9090
modalComponent.destroy();
9191
}
9292
nextTick(() => {
93-
if (modalComponent || modalParams.component || modalParams.asyncComponent) {
93+
if (
94+
modalComponent ||
95+
modalParams.component ||
96+
modalParams.asyncComponent ||
97+
modalParams.async
98+
) {
9499
router.removeModal(modal.el);
95100
}
96101
modal.destroy();

0 commit comments

Comments
 (0)