Semantic-UI icon indicating copy to clipboard operation
Semantic-UI copied to clipboard

[Dropdown] Sub Menu Animation Can Get Stuck

Open comerc opened this issue 12 years ago • 7 comments

... in Chrome-Ubuntu when repeatedly hover on "Clothing" menu item

Firefox-Ubuntu does not have this bug

comerc avatar Nov 25 '14 11:11 comerc

I can't reproduce. Probably any issues is tied into ui transition which is the core animation library that other modules depend on. Are you experiencing the same issues on the examples in transition?

jlukic avatar Nov 25 '14 15:11 jlukic

_2014-11-25_20_16_51_avi 1

comerc avatar Nov 25 '14 17:11 comerc

I can confirm this in Win 7 Chrome 38 using the same steps as noted above.

mattycraig avatar Nov 25 '14 18:11 mattycraig

Thanks, the gif really helped. I can reproduce now. Marked as a bug, and will look into.

jlukic avatar Nov 25 '14 23:11 jlukic

You're welcome 😎

comerc avatar Nov 28 '14 16:11 comerc

This has to do with webkit not firing css animationend callbacks on elements that are hidden. The transition on the sub menu does not correctly get reset when the parent element is closed if it the main menu happens to finish before the sub-menu hide animation (they both have the same animation duration so the behavior is erratic).

I've run into similar issues with dimmer and modal if a dimmer hides before a modal hides, the modal animationend event wont fire on chrome.

I'll have a fix for this in 1.0.2 still mulling it over.

jlukic avatar Nov 28 '14 23:11 jlukic

Added failsafe callbacks for transitions in cases where animationend arent fired by browsers. See Chromium Bug Report by Product Manager @ Mozilla and open issue

jlukic avatar Dec 01 '14 18:12 jlukic