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

Calendar disappear when action "Show Smart Tip" used

SA-31354

Summary



User has a text input, which has a"Date time" control with "Show Smart Tip" action. After clicking on calendar icon, the calendar appears.

But when user want to choose date and hover the mouse pointer on the calendar, it disappears.

Error Messages

Not applicable
 

Steps to Reproduce

1. Add input type calendar in a section.
2. ​Configure smart tip on calendar input type.
3. Run the use case -  click on calendar icon and hove the input filed. Observe that the calendar disappears.


Root Cause



This is an expected behavior but as per user's requirement provided below script to execute as per their requirement.
 

Resolution

 
Add below JS code in one text file and trigger this from Perform harness:

               window.addEventListener("load", function(event) {

                    var dt = document.getElementById('Date'); /*Date is id of Calendar input*/

                   var test  =dt.getAttribute('onmouseover');

                   dt.parentElement.onclick =  function(){

                          dt.removeAttribute('onmouseover');

                   }

                 dt.onchange=function(){  

                     dt.setAttribute("onmouseover", test);  

                }

            });

Suggest Edit

Published December 26, 2016 - 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