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:
parent
942e09db9d
commit
9cad64cd76
1 changed files with 1 additions and 1 deletions
|
@ -34,7 +34,7 @@ export default Component.extend({
|
||||||
this._super(...arguments);
|
this._super(...arguments);
|
||||||
|
|
||||||
this._animationEndHandler = run.bind(this, function () {
|
this._animationEndHandler = run.bind(this, function () {
|
||||||
if (event.originalEvent.animationName === 'fade-out') {
|
if (event.animationName === 'fade-out') {
|
||||||
this.notifications.closeNotification(this.message);
|
this.notifications.closeNotification(this.message);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
Loading…
Add table
Reference in a new issue