mirror of
https://github.com/zadam/trilium.git
synced 2025-12-16 21:29:56 +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 [ textNoteEditorType ] = useTriliumOption("textNoteEditorType");
|
||||||
const [ state, setState ] = useState("hidden");
|
const [ state, setState ] = useState("hidden");
|
||||||
|
|
||||||
useTriliumEvents([ "newNoteContextCreated", "noteContextRemoved" ], () => {
|
useTriliumEvents([ "newNoteContextCreated", "noteContextRemoved", "readOnlyTemporarilyDisabled" ], () => {
|
||||||
getFormattingToolbarState(activeNoteContext, activeNote, textNoteEditorType).then(setState);
|
getFormattingToolbarState(activeNoteContext, activeNote, textNoteEditorType).then(setState);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user