Support Article
Page is scrolling up when clicked near to hyperlink.
Summary
User is clicking on the "ManageReports". Clicking on these hyperlinks, navigates to screen accordingly.
When user scrolls towards the bottom of the list, now rather than clicking on Task Hyper Link, if user clicks anywhere within the box near the link, the screen view jumps back to the top of the page.
Error Messages
Not Applicable.
Steps to Reproduce
When a user scrolls towards the bottom of the list, and rather than clicking on the Task Hyper link, it misses and clicks the screen around it, the screen view jumps back up to the top of the page.
Root Cause
User has designed a Row Repeat inside a Repeating Grid. Upon clicking any where inside the row of the Repeating grid, the scroll bar is moving up to the top edge of the row.
Resolution
1. To begin with, this is an expected behavior in PRPC, where the design structure is having a Row Repeat within a Repeating Grid. As per the grid design, PRPC will focus on to the row where the mouse click happened within a row. Hence the page is scrolling up when user clicks anywhere within the row of the repeating grid.
2. The below script must be included in all the places where the user do not wish to see this behavior:
<script>
pega.ui.grid.prototype.focusFirstElement = function(content, formElementsOnly){
};
</script>
Published January 30, 2016 - Updated October 8, 2020
Have a question? Get answers now.
Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.