BlockNote
BlockNote copied to clipboard
Toolbar loses its position when custom item is selected
Describe the bug Toolbar loses its posiition when custom items are selected
To Reproduce Select alert from dropdown (https://stackblitz.com/github/TypeCellOS/BlockNote/tree/main/examples/03-ui-components/03-formatting-toolbar-block-type-items?file=README.md)>
Misc
- Node version:
- Package manager:
- Browser:
- [ ] I'm a sponsor and would appreciate if you could look into this sooner than later 💖
Thanks for reporting this, looks like the formatting toolbar is trying to calculate its position before the custom block is rendered.
Is there any workaround available? The issue is still here unfortunately
Which version of BlockNote are you running? I'd try updating to 0.33.0 if you're not on it already
Currently using 0.33.0 and 0.32.0, in both projects issue can be reproduced. It also can be reproduced on the website. I opened an issue about this a few days ago (#1836) before I found this one.
I would appreciate if someone could point me to where the calculation is happening so I can investigate the issue further (:
Created next.js sandbox: https://codesandbox.io/p/devbox/ncc3jf