diff --git a/chrome/content/zotero/components/tabBar.jsx b/chrome/content/zotero/components/tabBar.jsx index c457b6cf81..302580a442 100644 --- a/chrome/content/zotero/components/tabBar.jsx +++ b/chrome/content/zotero/components/tabBar.jsx @@ -110,6 +110,10 @@ const TabBar = forwardRef(function (props, ref) { } function handleTabMouseDown(event, id) { + // Don't select tab if it'll be closed with middle button click on mouse up + if (event.button === 1) { + return; + } if (event.button === 2) { let { screenX, screenY } = event; // Popup gets immediately closed without this