1
0
mirror of https://github.com/flarum/core.git synced 2025-08-08 01:16:52 +02:00

Properly bind loadNext button to the state

This commit is contained in:
Alexander Skvortsov
2020-07-06 23:33:17 -04:00
committed by Franz Liedke
parent aa15db6f44
commit 9f2540dbe3

View File

@@ -81,7 +81,7 @@ export default class PostStream extends Component {
if (!viewingEnd && posts[this.state.visibleEnd - this.state.visibleStart - 1]) {
items.push(
<div className="PostStream-loadMore" key="loadMore">
<Button className="Button" onclick={this.state.loadNext}>
<Button className="Button" onclick={this.state.loadNext.bind(this.state)}>
{app.translator.trans('core.forum.post_stream.load_more_button')}
</Button>
</div>