Pop Over re-appears on browser re-size

If you click the button that opens the pop over then close the modal, when you re-size the browser window the modal keeps re-appearing. How can I prevent this from happening?