Skip to content

Commit

Permalink
fix(core): sidebar can not be collapsed on mobile (#8475)
Browse files Browse the repository at this point in the history
close AF-1474
  • Loading branch information
JimmFly committed Oct 11, 2024
1 parent e6bbd48 commit 0409562
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ export function AppSidebar({ children }: PropsWithChildren) {
}

const dOnResize = debounce(onResize, 50);
onResize();
window.addEventListener('resize', dOnResize);
return () => {
window.removeEventListener('resize', dOnResize);
Expand Down

0 comments on commit 0409562

Please sign in to comment.