Closed CoreyTrombley closed 9 years ago
also when I set the focus within:
enableEditing: function(){ // set your contenteditable field into editing mode. this.setState({ editing: true }); }
it will focus the begining of the input regardless of the current value.
Yeah, you need to manually focus the element yourself. You can use the following methods:
this.refs.editable.autofocus() this.refs.editable.setCursorToStart() this.refs.editable.setCursorToEnd()
also when I set the focus within:
it will focus the begining of the input regardless of the current value.