fix: Clicking collapse sidebar does not hide sidebar until clicked elsewhere

closes #5928
This commit is contained in:
Tom Moor
2023-10-03 20:52:29 -04:00
parent 4d2a5ae748
commit e967641bb6
3 changed files with 30 additions and 11 deletions

View File

@@ -82,7 +82,10 @@ function AppSidebar() {
<ToggleButton
position="bottom"
image={<SidebarIcon />}
onClick={ui.toggleCollapsedSidebar}
onClick={() => {
ui.toggleCollapsedSidebar();
(document.activeElement as HTMLElement)?.blur();
}}
/>
</Tooltip>
</SidebarButton>