1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-06-27 23:28:38 +02:00

Fixed WebView race condition

This commit is contained in:
Laurent Cozic
2020-10-16 12:26:20 +01:00
parent 1e0d2b7b86
commit 66059939a3
3 changed files with 19 additions and 3 deletions

View File

@ -1035,6 +1035,9 @@ class NoteScreenComponent extends BaseScreenComponent {
bodyComponent = this.useBetaEditor()
// Note: blurOnSubmit is necessary to get multiline to work.
// See https://github.com/facebook/react-native/issues/12717#issuecomment-327001997
//
// 2020-10-16: As of React Native 0.63, the Markdown Editor no longer crashes in Android, however the
// cursor is still too unreliable to be usable, so we disable it in Android.
? <MarkdownEditor
ref={this.markdownEditorRef} // For focusing the Markdown editor
editorFont={editorFont(this.props.editorFont)}