Skip to content

Commit c3a20f5

Browse files
josephfuscoCopilot
andauthored
Apply suggestion from @Copilot
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 78d6eb4 commit c3a20f5

File tree

1 file changed

+2
-1
lines changed
  • examples/next/toolbar-demo/example-app/app/components

1 file changed

+2
-1
lines changed

examples/next/toolbar-demo/example-app/app/components/Toolbar.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@ export function Toolbar() {
2121
return () => {
2222
unsubscribe();
2323
// Clean up body class
24-
document.body.classList.remove(`hwp-has-toolbar-${position}`);
24+
const currentPosition = toolbar.getConfig()?.position || 'bottom';
25+
document.body.classList.remove(`hwp-has-toolbar-${currentPosition}`);
2526
};
2627
}, []);
2728

0 commit comments

Comments
 (0)