diff --git a/apps/client/src/widgets/find.ts b/apps/client/src/widgets/find.ts index aa4966a16..8db84e448 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;