The menu now uses CSS instead of JS for performance reasons.
It was working before because the JS was adding a bit of a delay before the sub-menu closed. If you slowly moved your mouse down, this same issue would have happened.
You can try offsetting that gap by adding this (in addition to your CSS):