Tooltip Global Problem on hide

UI Components for JSF
Post Reply
zapeSpawn
Posts: 1
Joined: 11 Aug 2023, 08:26

11 Aug 2023, 08:32

Hello,

Since the version change from primefaces 12.0.0 JSF to primefaces 13.0.0 I have detected an anomalous behavior of the Tooltip component using it as global for many page elements:

- Sometimes it is displayed below other elements as if the Z-index is not appropriate.
- The position in some elements is not correct, it is located a little below or a little to the right.
- Sometimes the tooltip displayed does not correspond to the element on which the hover is made.
- Very often (and gives bad user experience), the tooltip is not hidden. Sometimes you hover over elements where the pointer does not stop but after X milliseconds (as configured), the tooltip is displayed. As you are no longer in the element, the OUT event is not executed and the tooltip does not disappear.

Is there any change in the component ? Is there any way to avoid or solve these problems without going back to version 12.0.0.0 of the components ?

Code: Select all


<script type="text/javascript">               
                // <![CDATA[  
                    function tooltipBeforeShow() {
                        return !($('#canvas_overlay').hasClass('show-overlay'));
                    }
                    function tooltipHide() {                        
                    }
                // ]]>   
            </script>  
            
            <p:tooltip globalSelector=".conTooltip" autoHide="true" escape="false" hideDelay="0" showDelay="250" trackMouse="false" beforeShow="tooltipBeforeShow()" onHide="tooltipHide();" />                  
            

Thank you very much

Melloware
Posts: 3717
Joined: 22 Apr 2013, 15:48

12 Aug 2023, 14:25

Hmm the only issue I have seen that was fixed in 13.0.0 was this: https://github.com/primefaces/primefaces/issues/9633

Can you create a reproducer showing your issue? I am not seeing any issues on the Showcase: https://www.primefaces.org/showcase/ui/ ... fwid=3668b

if you can reproduce it please open a GitHub Issue ticket!
PrimeFaces Developer | PrimeFaces Extensions Developer
GitHub Profile: https://github.com/melloware
PrimeFaces Elite 13.0.0 / PF Extensions 13.0.0
PrimeReact 9.6.1

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 82 guests