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
Have a question? Get answers now.
Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.