forum: fix zepto selector in PostStream

This commit is contained in:
David Sevilla Martin 2020-03-11 18:04:38 -04:00
parent 35b91c98da
commit f0140c6656
No known key found for this signature in database
GPG Key ID: F764F1417E16B15F
5 changed files with 38312 additions and 88 deletions

11945
js/dist/admin.js vendored

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

26449
js/dist/forum.js vendored

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -309,7 +309,7 @@ class PostStream<T extends PostStreamProps = PostStreamProps> extends Component<
}
if (this.visibleEnd < this.count()) {
const $item = this.$(`.PostStream-item[data-index=${this.visibleEnd - 1}]`);
const $item = this.$(`.PostStream-item[data-index="${this.visibleEnd - 1}"]`);
if ($item.length && $item.offset().top + $item.outerHeight(true) < viewportTop + viewportHeight + loadAheadDistance) {
this.loadNext();