mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-11 20:08:37 +00:00
fix(component): app sidebar will never float when menu not opened (#5529)
This commit is contained in:
@@ -61,7 +61,7 @@ export function AppSidebar(props: AppSidebarProps): ReactElement {
|
||||
// so that the sidebar can be closed on mobile by default
|
||||
setOpen(!isFloating);
|
||||
}
|
||||
setFloating(isFloating && !!open);
|
||||
setFloating(isFloating);
|
||||
}
|
||||
|
||||
const dOnResize = debounce(onResize, 50);
|
||||
|
||||
Reference in New Issue
Block a user