mcc@mcclure111·Feb 7, 2016Me: How do I move the text cursor in React Google: Let me tell you about the cursor pattern in stateless functional programming Me: *cries*4523
Andy Matuschak@andy_matuschakReplying to @mcclure111@mcclure111 I’d probably make a `selectionRange` prop on a TextArea component and call setSelectionRange in componentWillReceiveProps.3:53 PM · Feb 7, 2016·Tweetbot for Mac1 Like
mcc@mcclure111·Feb 7, 2016Replying to @andy_matuschak@andy_matuschak is there a way to tell that the text cursor has *moved*?1
Andy Matuschak@andy_matuschak·Feb 7, 2016@mcclure111 <textarea> emits a “selectionchange” event. Should be able to <textarea onSelectionChange=…>11