My client just went live with the JS Snippet method on Answers. I noticed on the live experience that when you click the forward paginate button, it does not jump you to the top of the results. However, this DOES happen in my staging environment.
Perhaps this is a negative implication of the iFrame? Curious to hear your thoughts.
Hi @jyorke - thanks for the feedback and agreed it appears to be an iFrame consideration. We’ve escalated to our frontend Prod/Eng team and will keep you posted with updates.
Thanks Sam! Jessie, we’re working on a fix for this and will get back to you with timing. If it ends up being longer than a couple weeks, there is a short term solution that involves overriding the component in the theme, but it’s a bit more complicated (and makes upgrading harder).
We’re working on getting this update into the next theme release (January). If you need a fix sooner:
Override the Pagination component script: In Jambo commands, pick “override theme”, and select templates/[[layout name]]/script/pagination.hbs. You will need to do this for each template you’re referencing that’s also using pagination, likely vertical-standard, vertical-map and vertical-grid.
In your forked script file, below the container: ".js-answersPagination", add the following (don’t forget the comma outside the last bracket):