Skip to content

Commit

Permalink
Fixes Loader popping animation
Browse files Browse the repository at this point in the history
  • Loading branch information
Davide Curletti committed Apr 6, 2016
1 parent a7ea653 commit ac086c8
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
5 changes: 3 additions & 2 deletions lib/ReduxInfiniteScroll.js
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ var ReduxInfiniteScroll = function (_Component) {
value: function _renderOptions() {
var allItems = this.props.children.concat(this.props.items);

return [allItems, this.renderLoader()];
return allItems;
}
}, {
key: '_totalItemsSize',
Expand Down Expand Up @@ -147,7 +147,8 @@ var ReduxInfiniteScroll = function (_Component) {
return _react2.default.createElement(
Holder,
{ className: this._assignHolderClass(), style: { height: this.props.containerHeight } },
this._renderOptions()
this._renderOptions(),
this.renderLoader()
);
}
}]);
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "redux-infinite-scroll",
"version": "1.0.6",
"version": "1.0.7",
"description": "React infinite scroll component designed for a Redux data-flow.",
"main": "lib/ReduxInfiniteScroll.js",
"scripts": {
Expand Down
3 changes: 2 additions & 1 deletion src/ReduxInfiniteScroll.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ export default class ReduxInfiniteScroll extends Component {
_renderOptions() {
const allItems = this.props.children.concat(this.props.items);

return [allItems, this.renderLoader()];
return allItems;
}

_totalItemsSize() {
Expand Down Expand Up @@ -104,6 +104,7 @@ export default class ReduxInfiniteScroll extends Component {
return (
<Holder className={ this._assignHolderClass() } style={{height: this.props.containerHeight}}>
{this._renderOptions()}
{this.renderLoader()}
</Holder>
)
}
Expand Down

0 comments on commit ac086c8

Please sign in to comment.