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:
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]) {
|
if (!viewingEnd && posts[this.state.visibleEnd - this.state.visibleStart - 1]) {
|
||||||
items.push(
|
items.push(
|
||||||
<div className="PostStream-loadMore" key="loadMore">
|
<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')}
|
{app.translator.trans('core.forum.post_stream.load_more_button')}
|
||||||
</Button>
|
</Button>
|
||||||
</div>
|
</div>
|
||||||
|
Reference in New Issue
Block a user