1
0
mirror of https://github.com/flarum/core.git synced 2025-08-05 07:57:46 +02:00

Fix NotificationList storing jquery objects

This commit is contained in:
Alexander Skvortsov
2020-09-09 13:48:35 -04:00
committed by Franz Liedke
parent a5b2768836
commit 29d995de45

View File

@@ -98,7 +98,7 @@ export default class NotificationList extends Component {
super.oncreate(vnode); super.oncreate(vnode);
this.$notifications = this.$('.NotificationList-content'); this.$notifications = this.$('.NotificationList-content');
this.$scrollParent = $notifications.css('overflow') === 'auto' ? $notifications : $(window); this.$scrollParent = this.$notifications.css('overflow') === 'auto' ? this.$notifications : $(window);
this.boundScrollHandler = this.scrollHandler.bind(this); this.boundScrollHandler = this.scrollHandler.bind(this);
this.$scrollParent.on('scroll', this.boundScrollHandler); this.$scrollParent.on('scroll', this.boundScrollHandler);