0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-24 23:48:13 -05: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 942e09db9d
commit 9cad64cd76

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