mirror of
https://github.com/zadam/trilium.git
synced 2026-01-04 21:54:23 +01:00
fix(layout): classic toolbar not appearing after making a note temporarily editable
This commit is contained in:
parent
7edfd5d7b4
commit
4896042fc4
@ -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);
|
||||
});
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user