From 9cad64cd76fa69098bc36ba811ed5806c8848df6 Mon Sep 17 00:00:00 2001 From: Kevin Ansfield Date: Mon, 20 Jan 2020 15:30:24 +0000 Subject: [PATCH] Fixed toaster notification not clearing no issue - we switched to using native event listeners rather than jQuery but were still looking for the jQuery-specific `event.originalEvent` --- ghost/admin/app/components/gh-notification.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ghost/admin/app/components/gh-notification.js b/ghost/admin/app/components/gh-notification.js index 1edd689350..42a4d1d03c 100644 --- a/ghost/admin/app/components/gh-notification.js +++ b/ghost/admin/app/components/gh-notification.js @@ -34,7 +34,7 @@ export default Component.extend({ this._super(...arguments); this._animationEndHandler = run.bind(this, function () { - if (event.originalEvent.animationName === 'fade-out') { + if (event.animationName === 'fade-out') { this.notifications.closeNotification(this.message); } });