Steps to replicate the issue (include links if applicable):
- Go to https://en.wikipedia.org/wiki/Autonomous_system_(Internet)
- Hover over "Checked" with your mouse
- Move the mouse upwards
What happens?:
The popup doesn't close.
What should have happened instead?:
The popup should close.
Software version (on Special:Version page; skip for WMF-hosted wikis like Wikipedia):
Other information (browser name/version, screenshots, etc.):
The issue is that the code seems to wait for the user to move off the popup before closing it, but there's no guarantee that the cursor will even end up there. The fix is to add an additional check that closes the popup when the user moves off of "Checked".