DEV: dom clean should be cancelled on aborted transition (#17736)
This commit is contained in:
parent
de54bdd73d
commit
6ce75d3824
|
@ -40,6 +40,10 @@ export default {
|
||||||
const router = container.lookup("router:main");
|
const router = container.lookup("router:main");
|
||||||
|
|
||||||
router.on("routeDidChange", (transition) => {
|
router.on("routeDidChange", (transition) => {
|
||||||
|
if (transition.isAborted) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
scheduleOnce("afterRender", container, _clean, transition);
|
scheduleOnce("afterRender", container, _clean, transition);
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue