Don't call preventDefault for every link on the page when modal is open.