mirror of
https://github.com/zadam/trilium.git
synced 2025-12-15 12:49:53 +01:00
fix(layout): classic toolbar not appearing after making a note temporarily editable
This commit is contained in:
@@ -100,7 +100,7 @@ function useRenderState(activeNoteContext: NoteContext | undefined, activeNote:
|
||||
const [ textNoteEditorType ] = useTriliumOption("textNoteEditorType");
|
||||
const [ state, setState ] = useState("hidden");
|
||||
|
||||
useTriliumEvents([ "newNoteContextCreated", "noteContextRemoved" ], () => {
|
||||
useTriliumEvents([ "newNoteContextCreated", "noteContextRemoved", "readOnlyTemporarilyDisabled" ], () => {
|
||||
getFormattingToolbarState(activeNoteContext, activeNote, textNoteEditorType).then(setState);
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user