1
0
Fork 0
mirror of https://github.com/TryGhost/Ghost-Admin.git synced 2023-12-14 02:33:04 +01:00

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`
This commit is contained in:
Kevin Ansfield 2020-01-20 15:30:24 +00:00
parent 25f1f7f6bb
commit f0025da3f2

View file

@ -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);
}
});