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

Click event does not work on button with Refresh Activity

SA-19192

Summary



In Pega 7.1.8, if the button Click Event is configured to set a value and refresh the section, then the button click event works only on double click. Single click of button, does not work.

Error Messages



Not Applicable.

Steps to Reproduce



1. Create a button with Click Event to set a value and Refresh Activity.
2. Observe that when the button is held for a long time and then released, the refresh activity does not happen and appropriate data is not loaded.
3. Observe that when double clicked the refresh activity executes and appropriate data is loaded.


Root Cause



The issue is due to the defect in the Pega code or rules.

When post value happens through processOnloads, it tries to data bind the innerHTML of a button which is causing the DOM element to get replaced. So mousedown and mouseup are happening on two different DOM elements.This is the reason click event is not getting triggered. 

This is because of adding data-bindprops attribute on the button, even though templatization is not enabled.


Resolution



Apply HFix-25758.
 

Published February 10, 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?

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