Close button on popup doesn't seem to work

My popup is displaying fine, but when I click on the X button to close it, it doesn't close.

It seems to do *something* though, because after clicking the X, you can scroll the page behind the popup.

But the popup isn't disappearing, the background is still darkened, and no links on the faded page are clickable.