Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 0 additions & 14 deletions src/components/TextInputFocusable/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,6 @@ class TextInputFocusable extends React.Component {
}
if (prevProps.defaultValue !== this.props.defaultValue) {
this.updateNumberOfLines();
this.moveCursorToEnd();
}
}

Expand Down Expand Up @@ -199,19 +198,6 @@ class TextInputFocusable extends React.Component {
});
}

/**
* Move cursor to end by setting start and end
* to length of the input value.
*/
moveCursorToEnd() {
this.setState({
selection: {
start: this.props.defaultValue.length,
end: this.props.defaultValue.length,
},
});
}

focusInput() {
this.textInput.focus();
}
Expand Down