React.js - input losing focus when rerendering

后端 未结 19 2057
猫巷女王i
猫巷女王i 2020-12-05 01:49

I am just writing to text input and in onChange event i call setState, so React rerenders my UI. The problem is that the text input always lose a f

19条回答
  •  长情又很酷
    2020-12-05 02:02

    I just ran into this issue and came here for help. Check your CSS! The input field cannot have user-select: none; or it won't work on an iPad.

提交回复
热议问题