Is there a built in way to make it so clicking to a new page will take you to the top of the results?
Edit: I am currently doing this:
onLangsPageChange (toPage, fromPage) {
document.body.scrollTop = 0; // For Chrome, Safari and Opera
document.documentElement.scrollTop = 0; // For IE and Firefox
}
Is there a built in way to make it so clicking to a new page will take you to the top of the results? Edit: I am currently doing this:
onLangsPageChange (toPage, fromPage) { document.body.scrollTop = 0; // For Chrome, Safari and Opera document.documentElement.scrollTop = 0; // For IE and Firefox }