Skip to main content

This content has been archived and is no longer being updated. Links may not function; however, this content may be relevant to outdated versions of the product.

Support Article

DateTime control issue in modal window

SA-15150

Summary



In a modal window, on selecting DateTime control (this opens the calendar icon) and scrolling down the model window, the open calendar also scrolls down along with it. 

This is an inconsistent issue in modal window but DateTime control works correctly in normal section screen.

On clicking the DateTime icon:



After scrolling:



Error Messages



Not Applicable


Steps to Reproduce



1. Create a section containing a button. 
2. On click of button, have a local action to open in modal dialog.
3. The modal dialog should have a DateTime Control.
4. Save the flow and run the use case.
5. Open the flow and scroll the page.


Root Cause



The popup used by Datetime is always added to the form element inside harness div and if the harness scrolls the popup also scrolls with it. 

Resolution



Add the below code in the UserWorkForm which should be called when the body loads:

<script>
pega.u.d.attachOnload(function(){
(function (p) {
/* ....
.... */
    if( pega.u.d.bModalDialogOpen && pega.u.d.modalDialog && pega.u.d.modalDialog.body){    
        p.util.Event.addListener($(pega.u.d.modalDialog.body).find(".modal-scroll-panel").get(0), 'scroll', scrollHandler);    
    }
/* ....
.... */
}();

</script>

NOTE:
1. The issue reported, that is, the popup scrolls along the screen, is fixed in Pega 7.1.10. Similar solution was provided as a local-change in Pega 7.1.5.
2. Another issue is with the transition, where the popup does not scroll smoothly and it also comes on top of the header. This issue does not replicate in
Pega 7.1.10 with other browsers except IE. This is scheduled to be fixed in Pega 7.1.11 for IE browser.

Suggest Edit

Published January 31, 2016 - Updated October 8, 2020

Did you find this content helpful? Yes No

0% found this useful

Have a question? Get answers now.

Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.

We'd prefer it if you saw us at our best.

Pega Community has detected you are using a browser which may prevent you from experiencing the site as intended. To improve your experience, please update your browser.

Close Deprecation Notice
Contact us