Skip to content

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

web: fix close tab opening again * introduced in #6817

01zulfica30ac86d721
diff --git a/apps/web/src/components/editor/action-bar.tsx b/apps/web/src/components/editor/action-bar.tsx
index e13e030ca..1d4ec53ac 100644
--- a/apps/web/src/components/editor/action-bar.tsx
+++ b/apps/web/src/components/editor/action-bar.tsx
@@ -535,13 +535,15 @@ function Tab(props: TabProps) {
onAuxClick={(e) => {
if (e.button == 1) onClose();
}}
- onMouseUp={(e) => {
- if (e.button == 0) onFocus();
- }}
{...listeners}
{...attributes}
>
- <Flex mr={1}>
+ <Flex
+ mr={1}
+ onMouseUp={(e) => {
+ if (e.button == 0) onFocus();
+ }}
+ >
<Icon size={16} color={isActive ? "accent-selected" : "icon"} />
<Text
variant="body"