Modal Not Closing when app is resumed

When I have a modal open and then put the app in the background, resuming the app doesn’t allow me to close the modal that is currently open. I can see the click is working, because the active class is added to the close button, but the closeModal() function isn’t called. Has anyone else had this issue?