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

Unable to close the modal dialog in a Mashup screen

SA-41387

Summary



After embedding the Pega Internet Application Composer (IAC) gadget in a portal, user is unable to close a modal dialog (which displays results when open) when there are multiple records and a scroll bar on the Mashup screen.


Error Messages

Not Applicable


Steps to Reproduce

1. Configure a local action to launch a modal dialog on clicking a button
2. Include the section in the Mashup gadget
3. Run the case and navigate to the gadget screen
4. Click the button to launch the modal dialog
5. Click the Close (X) icon in the top right corner of the screen



Root Cause

A defect in Pegasystems’ code or rules. The modal dialog jsFocusLastElement API returns the last element with the td element present at the bottom of the screen. The modal dialog does not close on clicking the Close icon because the focus shifts to the bottom of the screen.


Resolution

Perform the following local-change:

Add the changes to the API to fix the RTE focus issue on tab In or Out.
Include the below script in a non-auto generated section and include the section in the modal dialog section.


<script>
setTimeout(
function(){
$('#container_close').off("focusin");
$('#container_close').focusin(function() {});
},100);

</script>




Suggest Edit

Published September 22, 2017 - Updated October 8, 2020

Did you find this content helpful? Yes No

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