A fully open source & end-to-end encrypted note taking alternative to Evernote.
TypeScript asp-net-coredotnet-coreelectronfosshacktoberfestnote-managmentnote-takingnote-taking-appnotebooknotesnotes-appopen-sourceopensourceprivacyproductivityreactreact-nativereactjsself-hosted
web: fix tab not closing on single click
Abdullah Attaaa706300a423
diff --git a/apps/web/src/components/editor/action-bar.tsx b/apps/web/src/components/editor/action-bar.tsxindex ba08b5654..a2795cfde 100644--- a/apps/web/src/components/editor/action-bar.tsx+++ b/apps/web/src/components/editor/action-bar.tsx@@ -533,9 +533,11 @@ function Tab(props: TabProps) {flexShrink: 0}}size={14}- onClick={(e) => {- e.stopPropagation();- onPin();+ onMouseUp={(e) => {+ if (e.button == 0) {+ e.stopPropagation();+ onPin();+ }}}/>) : (@@ -546,9 +548,11 @@ function Tab(props: TabProps) {borderRadius: "default",flexShrink: 0}}- onClick={(e) => {- e.stopPropagation();- onClose();+ onMouseUp={(e) => {+ if (e.button == 0) {+ e.stopPropagation();+ onClose();+ }}}className="closeTabButton"size={16}