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

The global search popup does not dismiss easily on an iPad



On an iPad, with any application that shows the global search control in its header, perform a search. It is irrelevant if any results are returned or not, the search popup is displayed.

Tapping anywhere on the application below the search box does not dismiss the search popup - although this works just fine on a desktop. 

Error Messages

Not Applicable.

Steps to Reproduce

1. Open any OOTB portal on ipad.
2. Tap on the search box, type "a" (or anything else), then tap the search magnifier-glass. The search popup will be displayed.
3. Place your finger on any blank part of the screen under the search pop. You can scroll the screen, even select links but the popup never closes.

Root Cause

The issue occurs when script pega_desktop_AppControllerLite.js is included in the header section of the harness.


The below code needs to be included in userworkform to resolve the issue:

<script type="text/javascript">
  pega.util.Event.addListener(document, "tap", function () {
      if($('#SearchResultsHeader').length == 0){
        $(window.parent.pega.ui.searchPanel_globals.currentPanel, window.parent).hide();
        $(window.parent.pega.ui.searchPanel_globals.currentPanel, window.parent).prev().hide();
  }, this, false);

Published January 31, 2016 - Updated October 8, 2020

Was this useful?

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.

Did you find this content helpful?

Want to help us improve this content?

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