Skip to content

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

fix: properties auto hiding when clicking inside them

thecodrr8d40c223470a
diff --git a/apps/web/src/components/editor/index.js b/apps/web/src/components/editor/index.js
index 5be34f2de..5749218f1 100644
--- a/apps/web/src/components/editor/index.js
+++ b/apps/web/src/components/editor/index.js
@@ -47,14 +47,15 @@ function Editor() {
}, [reopenLastSession]);
return (
- <Flex
- width={["0%", "0%", "100%"]}
- sx={{ position: "relative" }}
- onFocus={() => {
- hideProperties();
- }}
- >
- <Flex className="editor" flex="1 1 auto" flexDirection="column">
+ <Flex width={["0%", "0%", "100%"]} sx={{ position: "relative" }}>
+ <Flex
+ className="editor"
+ flex="1 1 auto"
+ flexDirection="column"
+ onFocus={() => {
+ hideProperties();
+ }}
+ >
<TitleBox
shouldFocus={sessionState === SESSION_STATES.new}
title={title}