Skip to content
This repository was archived by the owner on Jun 24, 2025. It is now read-only.

Commit fc50252

Browse files
committed
Close the find dialog when the note is temporarily readable
1 parent 8588143 commit fc50252

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

apps/client/src/widgets/find.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -240,6 +240,12 @@ export default class FindWidget extends NoteContextAwareWidget {
240240
}
241241
}
242242

243+
async readOnlyTemporarilyDisabledEvent({ noteContext }: EventData<"readOnlyTemporarilyDisabled">) {
244+
if (this.isNoteContext(noteContext.ntxId)) {
245+
await this.closeSearch();
246+
}
247+
}
248+
243249
async getHandler() {
244250
if (this.note?.type === "render") {
245251
return this.htmlHandler;

0 commit comments

Comments
 (0)