Add param onClose and delete .preventDefault()