Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

feat: refresh notes as soon as editor focus is lost

thecodrr6d72f8825706
diff --git a/apps/web/src/components/editor/index.js b/apps/web/src/components/editor/index.js
index 100b977e2..60bbe2f22 100644
--- a/apps/web/src/components/editor/index.js
+++ b/apps/web/src/components/editor/index.js
@@ -143,6 +143,9 @@ const Editor = props => {
width={["0%", "50%", "55%"]}
flex="1 1 auto"
flexDirection="column"
+ onBlur={() => {
+ ev.emit("refreshNotes");
+ }}
>
<Input
ref={titleRef}
diff --git a/apps/web/yarn.lock b/apps/web/yarn.lock
index 485ccf73b..cfe9eb56f 100644
--- a/apps/web/yarn.lock
+++ b/apps/web/yarn.lock
@@ -6991,7 +6991,7 @@ normalize-url@^3.0.0, normalize-url@^3.0.1:
"notes-core@https://github.com/thecodrr/notes-core.git":
version "0.2.0"
- resolved "https://github.com/thecodrr/notes-core.git#efbb64e63681c544cd00497f3242bb07f4cf7685"
+ resolved "https://github.com/thecodrr/notes-core.git#3b9f78947fbb1239853cb77002aeab1567d24a87"
dependencies:
fuzzysearch "^1.0.3"
transfun "^1.0.2"