Closed web-padawan closed 1 week ago
Issues
0 New issues
0 Accepted issues
Measures
0 Security Hotspots
0.0% Coverage on New Code
0.0% Duplication on New Code
This ticket/PR has been released with Vaadin 24.6.0.alpha4 and is also targeting the upcoming stable 24.6.0 version.
Description
These are two findings that I discovered while working on #8129
close()
is called twice e.g. on targetmouseleave
and then parentmouseover
, the second call overwrites the__closeTimeout
reference so one of the timeouts is not cleared properly on reopening and tooltip unexpectedly closes,__closeTimeout
but the tooltip is not removed from theclosing
set - so before reopening, it is immediately closed by the logic that is supposed to flush other closing tooltips.This unfortunately can't be easily reproduced with default tooltips so I had to add a test that checks the controller logic. IMO this is fine since the controller API +
manual
mode is what we use invaadin-menu-bar
so we need to test it.Type of change