From 5413cfb5d5ea1e49ffdb14ee4f99ea7b088286fd Mon Sep 17 00:00:00 2001 From: shel <9306996+afwn90cj93201nixr2e1re@users.noreply.github.com> Date: Sat, 8 Aug 2020 20:07:59 +0000 Subject: [PATCH] Make sure global onError called on abortation too --- src/history/base.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/history/base.js b/src/history/base.js index 0c90dafa7..e2c0e0263 100644 --- a/src/history/base.js +++ b/src/history/base.js @@ -87,7 +87,7 @@ export class History { confirmTransition (route: Route, onComplete: Function, onAbort?: Function) { const current = this.current const abort = err => { - if (isError(err)) { + if (isError(err) || err === false) { if (this.errorCbs.length) { this.errorCbs.forEach(cb => { cb(err) }) } else {