mirror of
https://github.com/ecency/ecency-mobile.git
synced 2024-12-22 04:41:43 +03:00
Merge pull request #1092 from esteemapp/hotfix/editor-crash
Fixed android editor crash
This commit is contained in:
commit
e46b7df374
@ -199,7 +199,7 @@ export default class MarkdownEditorView extends Component {
|
||||
};
|
||||
|
||||
render() {
|
||||
const { handleOpenImagePicker, intl, isPreviewActive, isReply } = this.props;
|
||||
const { handleOpenImagePicker, intl, isPreviewActive, isReply, isLoading } = this.props;
|
||||
const { text, selection } = this.state;
|
||||
|
||||
return (
|
||||
@ -223,6 +223,7 @@ export default class MarkdownEditorView extends Component {
|
||||
underlineColorAndroid="transparent"
|
||||
value={text}
|
||||
innerRef={this.inputRef}
|
||||
editable={!isLoading}
|
||||
/>
|
||||
) : (
|
||||
this._renderPreview()
|
||||
|
@ -236,6 +236,7 @@ class EditorScreen extends Component {
|
||||
uploadedImage={uploadedImage}
|
||||
initialFields={this._initialFields}
|
||||
isReply={isReply}
|
||||
isLoading={isPostSending || isUploading}
|
||||
/>
|
||||
</PostForm>
|
||||
</View>
|
||||
|
Loading…
Reference in New Issue
Block a user