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 focus requires 2 clicks
Abdullah Attad00c35bdafba
diff --git a/apps/web/src/components/editor/action-bar.tsx b/apps/web/src/components/editor/action-bar.tsxindex ea4fad84a..ba08b5654 100644--- a/apps/web/src/components/editor/action-bar.tsx+++ b/apps/web/src/components/editor/action-bar.tsx@@ -498,15 +498,11 @@ function Tab(props: TabProps) {e.stopPropagation();if (isTemporary) onKeepOpen();}}- onMouseDown={(e) => {- if (e.button == 1) {- e.preventDefault();- onClose();- }+ onAuxClick={(e) => {+ if (e.button == 1) onClose();}}- onClick={(e) => {- e.stopPropagation();- onFocus();+ onMouseUp={(e) => {+ if (e.button == 0) onFocus();}}{...listeners}{...attributes}