Support Article
Scrollbar does not scroll to screen bottom for SetFocus
SA-105519
Summary
The 'Set Focus' action for a Click event is configured on a button to focus an editable element (that is, Text input) that is present at the bottom of the screen. The button is at the top of the screen.
On clicking the button, the element is in focus. However, the scrollbar does not scroll automatically to the bottom of the screen. Hence, the focused element is not visible on the screen.
Expected behavior: On clicking the button, the scrollbar must automatically scroll down to the bottom of the screen such that the focused element is visible.
Error Messages
Not Applicable
Steps to Reproduce
- Add button at the top of a section.
- Set action for a Click event to Set Focus to the .pyNote property.
- Add a Text input for .pyNote at the bottom of the screen. Ensure there is sufficient content between the button and the Text input field such that the scrollbar displays, and that the button and text input are not visible at the same time.
- Click the button.
Root Cause
A defect in Pegasystems’ code or rules.
Resolution
This feature is implemented in Pega Platform 8.1.8.
Published April 9, 2020 - Updated December 2, 2021
Have a question? Get answers now.
Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.