When I press enter inside an inputfield my React form still submits even though I have set preventDefault

前端 未结 0 1096
Happy的楠姐
Happy的楠姐 2021-02-18 21:59

Very basic form

const handleSubmit = async (event: React.FormEvent) => {
event.preventDefault()
}         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题