Entering edit mode should focus editor.

closes #97
This commit is contained in:
Tom Moor
2017-07-02 23:18:38 -07:00
parent 8dfbd1cc59
commit 60bad34942

View File

@ -61,6 +61,12 @@ type KeyData = {
}
}
componentDidUpdate(prevProps: Props) {
if (prevProps.readOnly && !this.props.readOnly) {
this.focusAtEnd();
}
}
getChildContext() {
return { starred: this.props.starred };
}