Skip to content
Merged
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,33 @@ define([
});

this.labels(labels);
},

/**
* Change page
*
* @param {Number} page - current page
*/
changePage: function (page) {
this.clear();

if (page === 1 && !this.recordData().length) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @saravananvelu. Thanks for the collaboration.
This issue reproduced in all places where dynamic-rows component is used, so will be great if you fix this issue in the more general way, in the parent class.

Also, you can call the method from the parent class (this._super()) instead of copy-paste it

Copy link
Contributor Author

@saravananvelu saravananvelu May 24, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have updated the code in parent class and removed the same from child class

return false;
}

if (~~page > this.pages()) {
this.currentPage(this.pages());

return false;
} else if (~~page < 1) {
this.currentPage(1);

return false;
}

this.initChildren();

return true;
}
});
});