fix(core): sidebar can not be collapsed on mobile (#8475)

close AF-1474
This commit is contained in:
JimmFly
2024-10-11 08:13:38 +00:00
parent e6bbd48164
commit 040956279a

View File

@@ -90,6 +90,7 @@ export function AppSidebar({ children }: PropsWithChildren) {
}
const dOnResize = debounce(onResize, 50);
onResize();
window.addEventListener('resize', dOnResize);
return () => {
window.removeEventListener('resize', dOnResize);