Skip to content

Build your personal knowledge base with Trilium Notes

Close the find dialog when the note is temporarily readable

SiriusXTfc50252e9707
diff --git a/apps/client/src/widgets/find.ts b/apps/client/src/widgets/find.ts
index aa4966a166..8db84e448f 100644
--- a/apps/client/src/widgets/find.ts
+++ b/apps/client/src/widgets/find.ts
@@ -240,6 +240,12 @@ export default class FindWidget extends NoteContextAwareWidget {
}
}
+ async readOnlyTemporarilyDisabledEvent({ noteContext }: EventData<"readOnlyTemporarilyDisabled">) {
+ if (this.isNoteContext(noteContext.ntxId)) {
+ await this.closeSearch();
+ }
+ }
+
async getHandler() {
if (this.note?.type === "render") {
return this.htmlHandler;