1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-11-29 22:48:10 +02:00

Fix build

This commit is contained in:
Laurent Cozic
2020-02-19 00:09:19 +00:00
parent eeb9999334
commit 2fa8e2ff09
15 changed files with 74 additions and 1232 deletions

View File

@@ -131,8 +131,7 @@ class NoteScreenComponent extends BaseScreenComponent {
if (item.type_ === BaseModel.TYPE_NOTE) {
// Easier to just go back, then go to the note since
// the Note screen doesn't handle reloading a different note.
// Similar to creating a new note via QuickActions.
// the Note screen doesn't handle reloading a different note
this.props.dispatch({
type: 'NAV_BACK',
@@ -759,8 +758,8 @@ class NoteScreenComponent extends BaseScreenComponent {
let fieldToFocus = this.state.note.is_todo ? 'title' : 'body';
if (this.state.mode === 'view') fieldToFocus = '';
if (fieldToFocus === 'title') this.refs.titleTextField.focus();
if (fieldToFocus === 'body') this.refs.noteBodyTextField.focus();
if (fieldToFocus === 'title' && this.refs.titleTextField) this.refs.titleTextField.focus();
if (fieldToFocus === 'body' && this.refs.noteBodyTextField) this.refs.noteBodyTextField.focus();
}
async folderPickerOptions_valueChanged(itemValue) {