I think it would be cleaner to use event.currentTarget (or similar) in handleSubmit.