How can I get a current value for selectionStart and selectionEnd in a textarea

后端 未结 0 1757
长情又很酷
长情又很酷 2020-12-04 04:15

I have a textarea in a React app, and I want to save selectionStart and selectionEnd so that when the textarea gets remounted, I can restore the cursor to the same position

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