We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 78d6eb4 commit c3a20f5Copy full SHA for c3a20f5
examples/next/toolbar-demo/example-app/app/components/Toolbar.tsx
@@ -21,7 +21,8 @@ export function Toolbar() {
21
return () => {
22
unsubscribe();
23
// Clean up body class
24
- document.body.classList.remove(`hwp-has-toolbar-${position}`);
+ const currentPosition = toolbar.getConfig()?.position || 'bottom';
25
+ document.body.classList.remove(`hwp-has-toolbar-${currentPosition}`);
26
};
27
}, []);
28
0 commit comments