Fixing Reveal bug with modals locking when target is clicked while modal is open