Sidebar doesn’t auto-hide in browsers
Problem
You open the sidebar with Mouse Triggers. In most apps it hides again when your mouse leaves it. In a browser it stays open until you close it or switch to another app.
Cause
Only a sidebar that a mouse trigger opened hides when your mouse leaves it. Once your browser owns the sidebar, moving the mouse away does nothing.
Auto Show on Browser Focus hands the sidebar to your browser, and it’s on by default. While it’s on, every time a browser comes to the front, the sidebar opens with it. If the sidebar is already open, the browser takes it over. That happens when you switch to the browser, click into it, or open a link from the sidebar.
From then on the sidebar stays open until you close it, or until you switch to a non-browser app with When Leaving Browser set to Hide. This works the same in Smart Attach and Independent Browser Integration. There is no separate browser auto-hide setting.
Solution
Both fixes live in Preferences → Sidebar → Show and Hide → Auto-Visibility. Pick the one that matches how you work.
Hide when the mouse leaves, in browsers too
- Open Preferences → Sidebar → Show and Hide.
- Under Auto-Visibility, turn off Auto Show on Browser Focus.
- In your browser, open the sidebar from a screen edge, then move the mouse away. The sidebar hides.
The sidebar now opens only when you ask for it, and a sidebar opened by a mouse trigger hides when your mouse leaves it in every app. You can also turn this setting off from the sidebar’s ⋯ menu, under Visibility.
Keep auto-show, hide when you leave the browser
- Open Preferences → Sidebar → Show and Hide.
- Under Auto-Visibility, leave Auto Show on Browser Focus on.
- Set When Leaving Browser to Hide.
The sidebar still stays open while you’re in the browser, then hides as soon as you switch to a non-browser app. Keep Showing in Finder appears below and is on by default, so the sidebar stays open in Finder. Turn it off to hide there too.
Other reasons the sidebar stays open
| Issue | Why | Fix |
|---|---|---|
| You opened it with a shortcut, the menu bar icon or the floating button | Only mouse-trigger sidebars hide on mouse exit | Close it with Cmd Shift Space or the same control |
| Pin to All Spaces is on | A pinned sidebar never hides on mouse exit | Turn it off in the sidebar’s ⋯ menu |
| A folder preview, folder browser or edit form is open | The sidebar waits until you’re done with it | Close it, then move the mouse away |
Learn more
- Mouse Triggers - Open the sidebar from a screen edge
- Sidebar appears automatically - More on Auto Show on Browser Focus
- Browser Integration - How the sidebar works with your browser