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
|
// so that the sidebar can be closed on mobile by default
|
||||||
setOpen(!isFloating);
|
setOpen(!isFloating);
|
||||||
}
|
}
|
||||||
setFloating(isFloating && !!open);
|
setFloating(isFloating);
|
||||||
}
|
}
|
||||||
|
|
||||||
const dOnResize = debounce(onResize, 50);
|
const dOnResize = debounce(onResize, 50);
|
||||||
|
|||||||
Reference in New Issue
Block a user