mirror of
https://github.com/flarum/framework.git
synced 2025-01-21 14:14:59 +08:00
forum: fix zepto selector in PostStream
This commit is contained in:
parent
35b91c98da
commit
f0140c6656
11945
js/dist/admin.js
vendored
11945
js/dist/admin.js
vendored
File diff suppressed because one or more lines are too long
2
js/dist/admin.js.map
vendored
2
js/dist/admin.js.map
vendored
File diff suppressed because one or more lines are too long
26449
js/dist/forum.js
vendored
26449
js/dist/forum.js
vendored
File diff suppressed because one or more lines are too long
2
js/dist/forum.js.map
vendored
2
js/dist/forum.js.map
vendored
File diff suppressed because one or more lines are too long
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue
Block a user