mirror of
https://github.com/flarum/core.git
synced 2025-08-07 17:07:19 +02:00
Properly bind loadNext button to the state
This commit is contained in:
committed by
Franz Liedke
parent
aa15db6f44
commit
9f2540dbe3
@@ -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>
|
||||
|
Reference in New Issue
Block a user