bootstrap-hover-dropdown icon indicating copy to clipboard operation
bootstrap-hover-dropdown copied to clipboard

Make the code robust against duplicated timeouts

Open PetrDlouhy opened this issue 2 years ago • 0 comments

There is number of cases (i.e. two buttons triggering same dropdown) when the code would set up multiple timeouts at the same time. This can easily lead to weird and unexpected behavior such as dropdown hiding at unexpected moments when the mouse is still hovering over the active elements.

If we keep all the timeouts in array and clear all of them all of them, it would make the code robust against such problems. I expect that even the stop this event if conditions might not be needed anymore.

PetrDlouhy avatar Jun 09 '22 10:06 PetrDlouhy