mirror of
				https://github.com/zadam/trilium.git
				synced 2025-10-31 10:26:08 +01:00 
			
		
		
		
	keep focus when clicking on edit read only note
This commit is contained in:
		| @@ -40,7 +40,6 @@ class NoteContext extends Component { | ||||
|         this.notePath = resolvedNotePath; | ||||
|         this.noteId = treeService.getNoteIdFromNotePath(resolvedNotePath); | ||||
|  | ||||
|         this.readOnlyTemporarilyDisabled = false; | ||||
|         this.readOnlyTemporarilyDisabled = false; | ||||
|  | ||||
|         this.saveToRecentNotes(resolvedNotePath); | ||||
| @@ -182,7 +181,8 @@ class NoteContext extends Component { | ||||
|             return false; | ||||
|         } | ||||
|  | ||||
|         if (this.note.type !== 'text' && this.note.type !== 'code') { | ||||
|         // "readOnly" is a state valid only for text/code notes | ||||
|         if (!this.note || this.note.type !== 'text' && this.note.type !== 'code') { | ||||
|             return false; | ||||
|         } | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user