I think this is where the `event.preventDefault()` should have gone.