React: Cursor moves to front whenever add char in span

前端 未结 0 975
借酒劲吻你
借酒劲吻你 2021-01-01 03:43

I have the below code:

state = {input : null}

inputChangeHandler = (e) => {
    this.setState({input: e.currentTarget.textContent})
}



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