If you’re running into this, make sure that there is no padding between the navbar element and the actual dropdown element.
If there’s padding, as you drag your mouse away from the navbar and into the dropdown, the dropdown will close while your mouse is in the padding gap.
To fix it and maintain the spacing between navbar and dropdown, use margin instead.