Prevent accidental dismissing of dialog by clicking outside